Skip to content

Commit

Permalink
Update the data processing file
Browse files Browse the repository at this point in the history
  • Loading branch information
statwangz committed Sep 20, 2023
1 parent c0c7166 commit 0a34eb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion data-raw/ml100k.R
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion data-raw/neocortex.R
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Binary file added data/ml10m.rda
Binary file not shown.

0 comments on commit 0a34eb1

Please sign in to comment.