Learn R Programming

mimi (version 0.1.0)

armijo.lr: armijo.lr Performs Armijo backtracking line search along a pre-specified search direction

Description

armijo.lr Performs Armijo backtracking line search along a pre-specified search direction

Usage

armijo.lr(y0, theta, theta.tmp, alpha.mat = 0, w, z, lambda1, var.type,
  b = 0.5, thresh = 1e-05, nu = 0.1, zeta = 0.1, th = 0.1,
  step = 1)

Arguments

y0

nxp observations matrix

theta

nxp matrix direction of update for matrix of interactions

theta.tmp

nxp matrix, current matrix of interactions

alpha.mat

nxp matrix, matrix of main effects

w

weights of the quadratic approximation

z

matrix around which the quadratic approximation is done

lambda1

positive number, regularization parameter for nuclear norm penalty

var.type

vector of length p indicating column types for y (gaussian, binary, poisson)

b

positive number in (0,1) factor by which the step size is reduced

thresh

positive number, convergence criterion

nu

positive number, backtracking line search parameter, default 0.01

zeta

positive number, backtracking line search parameter, default 0.1

th

positive number, backtracking line search parameter, default 0.1

step

number in (0,1), initial backtracking line search step, default 1

Value

A list with the following elements

theta

(nb individuals) x (nb variables) matrix containing the individual effects

objective

a vector containing the value of the objective function at every iteration

step

the step size