sudo apt-get install python-matplotlib python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git
sudo pip install Theano
sudo pip install --upgrade Theano
python -c "import theano; theano.test(verbose=2)"
sudo pip install pyyaml pil
git clone git://github.com/lisa-lab/pylearn2.git
sudo python setup.py develop --prefix /usr/local/lib/python2.7/dist-packages/
export PYLEARN2_DATA_PATH=~/data
cd ~/data/cifar10
wget http://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz
tar zxvf cifar-10-python.tar.gz
cd $PYLEARN2_HOME/pylearn2/scripts/tutorials/grbm_smd/
python make_dataset.py
python ../../train.py cifar_grbm_smd.yaml
export PYLEARN2_VIEWER_COMMAND="eog --new-instance"
python ../../show_weights.py cifar_grbm_smd.pkl
python ../../plot_monitor.py cifar_grbm_smd.pkl
/pylearn2/gui/get_weights_report.py
if dataset is None:
logger.info('loading dataset...')
control.push_load_data(False)
dataset_filename = yaml_parse.load(model.dataset_yaml_src)
dataset = serial.load(dataset_filename)
control.pop_load_data()
logger.info('...done')
댓글
댓글 쓰기