Skip to content

Commit

Permalink
To pass R-CMD-check
Browse files Browse the repository at this point in the history
  • Loading branch information
statwangz committed Sep 20, 2023
1 parent 02dfd48 commit c0c7166
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions R/mfairInitialization.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ createMFAIR <- function(Y, X,
x = Y[obs_tf],
dims = c(N, M),
symmetric = FALSE, triangular = FALSE,
index1 = TRUE,
repr = "C"
index1 = TRUE
)
message("The main data matrix Y has been transferred to the sparse mode!")
} # Otherwise, Y is not in sparse mode and we don't want it to be
Expand Down
3 changes: 1 addition & 2 deletions R/mfairSingleFactor.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ fitSFSparse <- function(Y, X, init,
x = init@tau,
dims = c(N, M),
symmetric = FALSE, triangular = FALSE,
index1 = TRUE,
repr = "C"
index1 = TRUE
)

ELBO_old <- getELBO(Y, init, obs_indices)
Expand Down
3 changes: 1 addition & 2 deletions R/mfairUtils.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ projSparse <- function(Y, obs_indices) {
x = Y[obs_indices],
dims = c(N, M),
symmetric = FALSE, triangular = FALSE,
index1 = TRUE,
repr = "C"
index1 = TRUE
)
}
3 changes: 1 addition & 2 deletions data-raw/ml100k.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ u_data_matrix <- Matrix::sparseMatrix(
x = u_data[, 3],
dims = c(N, M),
symmetric = FALSE, triangular = FALSE,
index1 = TRUE,
repr = "C"
index1 = TRUE
)
# head(u_data_matrix)

Expand Down

0 comments on commit c0c7166

Please sign in to comment.