We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9020d23 commit 7dc4bc8Copy full SHA for 7dc4bc8
1 file changed
vignettes/ml100k.Rmd
@@ -42,12 +42,11 @@ Then we proceed to fit the MFAI model with top three factors.
42
# Create MFAIR object
43
Y <- t(ml100k$rating)
44
X <- ml100k$genre
45
-mfairObject <- createMFAIR(Y, X, K_max = 3)
+mfairObject <- createMFAIR(Y, X, Y_sparse = TRUE, K_max = 3)
46
47
# Fit the MFAI model
48
-mfairObject <- fitGreedy(mfairObject,
49
- save_init = TRUE,
50
- sf_para = list(verbose_loop = FALSE)
+mfairObject <- fitGreedy(
+ mfairObject, save_init = TRUE, sf_para = list(verbose_loop =FALSE)
51
)
52
```
53
0 commit comments