View source: R/adaptive-initialize.R
| adaptive_initialize | R Documentation |
An implementation of the AdaptiveInitialize algorithm for
matrix imputation for sparse matrices. At the moment the implementation
is only suitable for small matrices with on the order of thousands
of rows and columns at most.
adaptive_initialize(
X,
rank,
...,
p_hat = NULL,
alpha_method = c("exact", "approximate"),
additional = NULL
)
## S3 method for class 'sparseMatrix'
adaptive_initialize(
X,
rank,
...,
p_hat = NULL,
alpha_method = c("exact", "approximate"),
additional = NULL
)
X |
A sparse matrix of |
rank |
Desired rank (integer) to use in the low rank approximation.
Must be at least |
... |
Ignored. |
p_hat |
The portion of |
alpha_method |
Either |
additional |
Ignored except when |
A low rank matrix factorization represented by an
adaptive_imputation() object.
mf <- adaptive_initialize(
ml100k,
rank = 3,
alpha_method = "approximate",
additional = 2
)
mf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.