-
Notifications
You must be signed in to change notification settings - Fork 7
VM Setup for Training
Fanatickz edited this page Nov 19, 2019
·
5 revisions
Using the OpenStack solution at LRZ it is no hassle recreating/adjusting our VMs. If there are any general questions for the setup, have a look at the Tutorial or simply ask me. To shorten the time for preparing a fresh instance following steps should be executed:
- Create kaggle directory (on host machine)
mkdir .kaggle
- Transfer your kaggle.json to the vm (execute on local host)
scp <path_to_kaggle.json> <username>@<ip>:~/.kaggle
- Save following block to an .sh and transfer it to the VM using scp
#! /bin/bash
apt update
apt-get install python3
apt-get install python3-venv
apt-get install unzip
git clone https://github.com/energeeks/ashrae-energy-prediction.git
cd ashrae-energy-prediction
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
kaggle competitions download -c ashrae-energy-prediction
mkdir -p data/raw
unzip ashrae-energy-prediction.zip -d data/raw
make data
make features
-
Execute .sh and call training methods over
make
-
If you are using a GPU for Lightgbm you also have to install following dependencies:
apt-get install cmake libboost-all-dev
pip3 uninstall lightgbm
pip3 install lightgbm --install-option=--gpu --install-option="--opencl-include-dir=/usr/local/cuda/include/" --install-option="--opencl-library=/usr/local/cuda/lib64/libOpenCL.so"