A small module to train and save a classifier.
Project description
# Model Train and Save Test Author: [Brenton Mallen](https://www.brentonmallen.com)
This is a package to build a ML model and save it to disk.
## Installation pip install mallen_grubhub_test
or install manually by cloning the repo and running
python setup.py install
## To Run The CLI requires an integer argument called –region_id.
Example run call: train –region_id 1 (This will train a classifier on region 1)
For CLI help type python src/train.py -h in the package root directory
### Run Tests To run tests, run the following command in the package root directory: make test
### Development Either a Conda environment using conda env update in the root directory or by using virtualenv by first initializing the environment with virtualenv grubhub-venv, activating with grubhub-venv/bin/activate and installing the dependencies using pip install -r requirements.txt
Updating pypi package Upload to pypi can be done using the make package-test command. It will ask for credentials for a test pypi account.
Similarly, production can be updated using the make package-prod command.
For reference, see the [tutorial](https://packaging.python.org/tutorials/packaging-projects/)
## TODOs Outside of the time constrain, there are a number of improvements: 1. Continuous integration and deployment with something like Jenkins 1. Implement mypy for type checking to reduce potential errors 1. Implement linting for quality checking 1. Explore using [tox](https://tox.readthedocs.io/en/latest/) for platform testing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mallen_grubhub_test-1.1.0.tar.gz.
File metadata
- Download URL: mallen_grubhub_test-1.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3566006f355773589097b8cb825e5858d200d3849187a8c34ce6d0fcb0f959d0
|
|
| MD5 |
0024f480c8052705cc1425e48ad05347
|
|
| BLAKE2b-256 |
168bdbcf32f52d625d4d732d435363e97e3cca48de3834741ef191c867ec1e5a
|
File details
Details for the file mallen_grubhub_test-1.1.0-py3-none-any.whl.
File metadata
- Download URL: mallen_grubhub_test-1.1.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b44877de7975b74c8330f31f33c42d2556b0d639d4dabe4612e777af2b2a4388
|
|
| MD5 |
d5bbbfbfe0264c773fecefba0144e285
|
|
| BLAKE2b-256 |
801b2ac65511586cebdb92c3b5b5228b6d470be4236cfb1f3dd1dbac773d89a9
|