A framework for creating and deploying prediction application
-
nstr new :project_name
- create a folder callediris
-
nstr create :model_name
- create a set of files inside ofiris/svm_classifier/v1
-
nstr load :model_name --csv=raw.csv --model=model.pkl
-
nstr version :model_name
- direct copy of folder for last version of model model and increments version. For exampleiris/svm_classifier/v2
-
nstr serve :model_name
- this should run the app.py on localhost -
nstr test :model_name
- this should run the test suite for the app -
nstr copy :original_name :new_name
- this would make a new copy of everything -
nstr build --model_file=model.pkl
- Create a docker file. Warn users if model file is > 1 GB -
nstr deploy
- logs in to aws and published your container to EBS -
Project structure
iris
└── svm_classifier
└── v1
├── api.py
├── data
│ └── raw.csv
├── estimator.py
├── models
│ └── svm_classifier_2016050281212.pkl
├── pipeline.py
├── transformer.py
└── worker.py
Notes:
Add to pio create script --type=text,regression,classification