ALS {TensorTest2D}R Documentation

The function performing the Alternating Least Square (ALS) Algorithm.

Description

The function performing the Alternating Least Square (ALS) Algorithm.

Usage

ALS(DATA, n_R, family, opt = opt, max_ite = max_ite, tol = tol)

Arguments

DATA

A list. The input data. DATA$y is the dependent variable. DATA$X is the 3-D tensor independent variables. DATA$W is other independent variables.

n_R

A numerical constant. A predefined value determines the rank of the approximate matrix

family

Family of generalized linear model. Provide three options for model.(see more details in Details)

opt

Optimization options. Provide two options for optimization stopping criterion. opt = 1 or 2. (see more details in Details)

max_ite

Maximum iteration. The value of maximum iterations for the algorithm.

tol

Tolerance. The value of tolerance with respect to optimization.

Value

A list. See tensorReg2D.


[Package TensorTest2D version 1.1.1 Index]