Skip to content

Commit d16b28a

Browse files
committed
Update README
1 parent 1aede41 commit d16b28a

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Y_train[-train_set] <- NA
138138
Y_test[train_set] <- NA
139139
140140
# Create MFAIR object
141-
mfairObject <- createMFAIR(Y_train, as.data.frame(X), K_max = K_true)
141+
mfairObject <- createMFAIR(Y_train, as.data.frame(X), Y_sparse = TRUE, K_max = K_true)
142142
143143
# Fit the MFAI model
144144
mfairObject <- fitGreedy(mfairObject, sf_para = list(verbose_loop = FALSE))

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,9 @@ Y_train[-train_set] <- NA
154154
Y_test[train_set] <- NA
155155

156156
# Create MFAIR object
157-
mfairObject <- createMFAIR(Y_train, as.data.frame(X), K_max = K_true)
157+
mfairObject <- createMFAIR(Y_train, as.data.frame(X), Y_sparse = TRUE, K_max = K_true)
158158
#> The main data matrix Y has 50% missing entries!
159-
#> Warning in createMFAIR(Y_train, as.data.frame(X), K_max = K_true): If there are
160-
#> a large number of missing entries, we recommend setting Y_sparse = TRUE!
159+
#> The main data matrix Y has been transferred to the sparse mode!
161160
#> The main data matrix Y has been centered with mean = 0.0364079914822442!
162161

163162
# Fit the MFAI model

0 commit comments

Comments
 (0)