Pylearn2PracticePylearn2的实际应用
在Pylearn2的实践中,请参考以下说明:
对于Windows执行的命令:
set PYTHONPATH=%PYTHONPATH%;.
set THEANO_FLAGS=device=cpu
train.py adult.yaml
python predict.py softmax_regression_best.pkl adulttest.csv predictions.txt
对于Unix(未经测试):
export PYTHONPATH=$PYTHONPATH:.
export THEANO_FLAGS=device=cpu
train.py adult.yaml
python predict.py softmax_regression_best.pkl adult/test.csv predictions.txt
用户评论