create_data.sh 589 字节
Newer Older
O
overlordmax 已提交
1 2 3 4 5 6 7
mkdir train_data
mkdir test_data
mkdir data
train_path="data/census-income.data"
test_path="data/census-income.test"
train_data_path="train_data/"
test_data_path="test_data/"
O
overlordmax 已提交
8

O
overlordmax 已提交
9 10
pip install -r requirements.txt

O
overlordmax 已提交
11 12
wget -P data/ https://archive.ics.uci.edu/ml/machine-learning-databases/census-income-mld/census.tar.gz
tar -zxvf data/census.tar.gz -C data/
O
overlordmax 已提交
13 14 15 16

python data_preparation.py --train_path ${train_path} \
                           --test_path ${test_path} \
                           --train_data_path ${train_data_path}\
O
overlordmax 已提交
17
                           --test_data_path ${test_data_path}