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 python process_ml_1m.py hash log.data.train > ./train/data.txt python process_ml_1m.py hash log.data.test > ./test/data.txt rm log.data.train rm log.data.test cd ../