loss {BEclear} | R Documentation

## loss

### Description

computation of the loss of factorization LR

### Usage

    loss(L, R, lambda, D)

### Arguments

`L` | a matrix describing the effects of the features
`R` | a matrix describing the effects of the samples
`lambda` | constant that controls the extent of regularization during the gradient descent
`D` | a matrix containing the measured values

### Value

a list containing the loss calculated and the error matrix

[Package BEclear version 2.6.0 Index]