adaptive_impute {fastadi} | R Documentation |
AdaptiveImpute
Description
An implementation of the AdaptiveImpute
algorithm for matrix completion
for sparse matrices.
Usage
adaptive_impute(
X,
rank,
...,
initialization = c("svd", "adaptive-initialize", "approximate"),
max_iter = 200L,
check_interval = 1L,
epsilon = 1e-07,
additional = NULL
)
## S3 method for class 'sparseMatrix'
adaptive_impute(
X,
rank,
...,
initialization = c("svd", "adaptive-initialize", "approximate"),
additional = NULL
)
## S3 method for class 'LRMF'
adaptive_impute(
X,
rank,
...,
epsilon = 1e-07,
max_iter = 200L,
check_interval = 1L
)
Arguments
X |
A sparse matrix of |
rank |
Desired rank (integer) to use in the low rank approximation.
Must be at least |
... |
Unused additional arguments. |
initialization |
How to initialize the low rank approximation. Options are:
Note that initialization matters as |
max_iter |
Maximum number of iterations to perform (integer). Defaults
to |
check_interval |
Integer specifying how often to perform convergence
checks. Defaults to |
epsilon |
Convergence criteria, measured in terms of relative change
in Frobenius norm of the full imputed matrix. Defaults to |
additional |
Ignored except when |
Value
A low rank matrix factorization represented by an
adaptive_imputation()
object.
References
Cho, Juhee, Donggyu Kim, and Karl Rohe. “Asymptotic Theory for Estimating the Singular Vectors and Values of a Partially-Observed Low Rank Matrix with Noise.” Statistica Sinica, 2018. https://doi.org/10.5705/ss.202016.0205.
———. “Intelligent Initialization and Adaptive Thresholding for Iterative Matrix Completion: Some Statistical and Algorithmic Theory for Adaptive-Impute.” Journal of Computational and Graphical Statistics 28, no. 2 (April 3, 2019): 323–33. https://doi.org/10.1080/10618600.2018.1518238.
Examples
mf <- adaptive_impute(ml100k, rank = 3L, max_iter = 5L, check_interval = NULL)
mf