data_prepare.sh 485 字节
Newer Older
M
malin10 已提交
1 2 3 4 5 6 7 8 9 10 11 12
cd data

wget http://files.grouplens.org/datasets/movielens/ml-1m.zip
unzip ml-1m.zip

python split.py

mkdir train/
mkdir test/

python process_ml_1m.py process_raw ./ml-1m/train.dat | sort -t $'\t' -k 9 -n > log.data.train
python process_ml_1m.py process_raw ./ml-1m/test.dat | sort -t $'\t' -k 9 -n > log.data.test
M
malin10 已提交
13 14
python process_ml_1m.py hash log.data.train > ./train/data.txt
python process_ml_1m.py hash log.data.test > ./test/data.txt
M
malin10 已提交
15 16 17 18

rm log.data.train
rm log.data.test
cd ../