Skip to content

Commit 7dc4bc8

Browse files
committed
Update ml100k.Rmd
1 parent 9020d23 commit 7dc4bc8

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

vignettes/ml100k.Rmd

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@ Then we proceed to fit the MFAI model with top three factors.
4242
# Create MFAIR object
4343
Y <- t(ml100k$rating)
4444
X <- ml100k$genre
45-
mfairObject <- createMFAIR(Y, X, K_max = 3)
45+
mfairObject <- createMFAIR(Y, X, Y_sparse = TRUE, K_max = 3)
4646
4747
# Fit the MFAI model
48-
mfairObject <- fitGreedy(mfairObject,
49-
save_init = TRUE,
50-
sf_para = list(verbose_loop = FALSE)
48+
mfairObject <- fitGreedy(
49+
mfairObject, save_init = TRUE, sf_para = list(verbose_loop =FALSE)
5150
)
5251
```
5352

0 commit comments

Comments
 (0)