data_process.sh 400 字节
Newer Older
M
add gnn  
malin10 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#! /bin/bash

set -e
echo "begin to download data"

cd raw_data && python download.py
mkdir diginetica
python preprocess.py --dataset diginetica

echo "begin to convert data (binary -> txt)"
python convert_data.py --data_dir diginetica

cat diginetica/train.txt | wc -l >> diginetica/config.txt

mkdir train_data
mv diginetica/train.txt train_data

mkdir test_data
mv diginetica/test.txt test_data