[0d34a1]: / train.sh

Download this file

8 lines (6 with data), 347 Bytes

1
2
3
4
5
6
7
8
#! /bin/bash
cd model
rm train_model.py -f
python3 -m jupyter nbconvert model.ipynb --to python --output train_model --ClearOutputPreprocessor.enabled=True --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags 'nbconvert_remove'
python3 train_model.py > /dev/null
echo "Model trained and saved at model/trained_model.sav"