Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 639 Bytes

File metadata and controls

33 lines (25 loc) · 639 Bytes

CodeSnips

To run the tests

pytest -p no:warnings

Run tests with no warnings and coverage

pytest --cov=train_model -p no:warnings

Snippets of Interest

Python Packages

Hyperopt in both a notebook and a py file
FancyImpute
SMOTE
Vader
Pytest - Coverage, Fixtures

Techniques

Notebook for training
Auto Reload a notebook
%%Time and current time
Timeshift so that we can find users who have visited site > 3 times in time period
sys.path for fixing imports

Docker

Dockerfile to deploy
NGINX
Gunicorn
Flask

TODO:

http://blog.davidkaleko.com/feature-engineering-cyclical-features.html