Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
distiller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
distiller
Commits
9097d6d7
Commit
9097d6d7
authored
5 years ago
by
Guy Jacob
Browse files
Options
Downloads
Patches
Plain Diff
NCF: Add missing script to get dataset and update README
parent
f312e092
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/ncf/README.md
+10
-5
10 additions, 5 deletions
examples/ncf/README.md
examples/ncf/extract_dataset.sh
+11
-0
11 additions, 0 deletions
examples/ncf/extract_dataset.sh
with
21 additions
and
5 deletions
examples/ncf/README.md
+
10
−
5
View file @
9097d6d7
...
@@ -25,8 +25,6 @@ The model trains on binary information about whether or not a user interacted wi
...
@@ -25,8 +25,6 @@ The model trains on binary information about whether or not a user interacted wi
## Setup
## Setup
### Steps to configure machine
*
Install
`unzip`
and
`curl`
*
Install
`unzip`
and
`curl`
```
bash
```
bash
...
@@ -41,14 +39,21 @@ The model trains on binary information about whether or not a user interacted wi
...
@@ -41,14 +39,21 @@ The model trains on binary information about whether or not a user interacted wi
pip
install
-e
.
pip
install
-e
.
```
```
*
Download and verify
data
*
Obtain the ml-20m
data
set
```
bash
```
bash
cd
<distiller-repo-root>/examples/ncf
cd
<distiller-repo-root>/examples/ncf
# Creates ml-20.zip
# Creates ml-20.zip
source
../download_dataset.sh
source
download_dataset.sh
# Confirms the MD5 checksum of ml-20.zip
# Confirms the MD5 checksum of ml-20.zip
source
../verify_dataset.sh
source
verify_dataset.sh
# Extracts the dataset into a sub-directory named 'ml-20m'
# During the last step the script might appear to hang,
# This is normal, it finishes after a few minutes
source
extract_dataset.sh
```
```
## Running the Sample
## Running the Sample
...
...
This diff is collapsed.
Click to expand it.
examples/ncf/extract_dataset.sh
0 → 100644
+
11
−
0
View file @
9097d6d7
#!/bin/bash
echo
"unzip ml-20m.zip"
if
unzip
-u
ml-20m.zip
then
echo
"Start processing ml-20m/ratings.csv"
python convert.py ml-20m/ratings.csv ml-20m
--negatives
999
else
echo
"Problem unzipping ml-20.zip"
echo
"Please run 'download_data.sh && verify_datset.sh' first"
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment