4th Place Solution for Quora Insincere Questions Classification
Solution overview is as below:
- docker >= 17.12.0
- docker-compose >= 1.19.0
- nvidia-docker2 >= 2.0.2
Download kaggle.json and place in the location: ~/.kaggle/kaggle.json
.
See details: https://github.com/Kaggle/kaggle-api
docker-compose build
docker-compose run cpu kaggle competitions download quora-insincere-questions-classification -p input
unzip "input/*.zip" -d input
docker-compose run gpu python exec/train.py -m python exec/train.py -m models/submit/submit1_embed_smpl_400.py -g <GPU_ID>
docker-compose run cpu python exec/train.py -m python exec/train.py -m models/submit/submit1_embed_smpl_400.py
Below command will run both flake8
and pytest
:
$ docker-compose run test
We use PEP8 syntax conventions, so please check your python changes:
$ docker-compose run cpu flake8
Before sending your PR, please make sure all tests are passing:
$ docker-compose run cpu nosetests