Skip to main content

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

This version

1.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mallen-grubhub-test, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size mallen_grubhub_test-1.1.0-py3-none-any.whl (9.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size mallen_grubhub_test-1.1.0.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page