From db461dba57c6a02dcd0fb0d2746c1a62b33a3f34 Mon Sep 17 00:00:00 2001 From: WANG Zhiwei <48282751+statwangz@users.noreply.github.com> Date: Thu, 21 Sep 2023 02:25:19 +0800 Subject: [PATCH] Update the code for data processing --- data-raw/ml100k.R | 5 ++++- data-raw/neocortex.R | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/data-raw/ml100k.R b/data-raw/ml100k.R index 64d4322..4c1b03d 100644 --- a/data-raw/ml100k.R +++ b/data-raw/ml100k.R @@ -1,6 +1,7 @@ -### code to prepare `ml100k` dataset goes here +### Code to prepare `ml100k` dataset goes here ## Movie rating data + u_data <- read.table( "https://files.grouplens.org/datasets/movielens/ml-100k/u.data", sep = "\t", header = FALSE @@ -24,6 +25,7 @@ u_data_matrix <- Matrix::sparseMatrix( # head(u_data_matrix) ## User information + u_user <- read.table( "https://files.grouplens.org/datasets/movielens/ml-100k/u.user", sep = "|", header = FALSE @@ -40,6 +42,7 @@ colnames(u_user) <- c("Age", "Gender", "Occupation") # dim(u_user) # Movie genre information + u_item <- read.csv( "https://files.grouplens.org/datasets/movielens/ml-100k/u.item", sep = "|", header = FALSE diff --git a/data-raw/neocortex.R b/data-raw/neocortex.R index fead466..29c2b50 100644 --- a/data-raw/neocortex.R +++ b/data-raw/neocortex.R @@ -1,4 +1,5 @@ -### code to prepare `neocortex` dataset goes here +### Code to prepare `neocortex` dataset goes here + # Bulk gene expression data (microarray platform) used in the MFAI paper # Set the path for raw data