Skip to main content

ModelMaker

Framework and utilities for creating and validating ML models

Features

  • CLI tool for creation and validation of models
  • Choose from predefined templates

Install the tool

This will install the modelmaker CLI tool

git clone https://github.com/shirecoding/ModelMaker.git
cd ModelMaker
pip3 install ./

alternatively install from pypi

pip3 install model-maker

List Templates

modelmaker templates

Create a New Project

modelmaker new --project MNISTClassifier --package mnistmodel --template default

This will create the python package mnistmodel inside directory MNISTClassifier (also the main class name)

Current Templates

  • default (simple classification model using mnist dataset example)
  • linear_regression
  • text_classification

Project Structure

  • The model is packaged as an importable and installable python library
  • scripts/train.py used for training the model and exporting it to saved_models
  • scripts/test.py gives an example of how to use the packaged model in production
src/
    MNISTClassifier/
        mnistmodel/ 	# python model package
        saved_model/ 	# this is where the model is saved after training
            mnistmodel
        scripts/
            train.py 	# training script which imports model package, trains model, saves model to saved_model
            test.py 	# example test script on how to use the model package in production
        setup.py
        README.md
        .gitignore
        ...

Model Framework and Pipeline

  • Each model inherits from an abstract class ModelInterface
  • Each model must override get_model, fit_model, load_model, save_model
  • Each model must define preprocess, predict, postprocess

Metadata

Release files for model-maker 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for model-maker 0.0.5
File Size Uploaded
model-maker-0.0.5.tar.gz 189.4 kB Details

Release files / model-maker-0.0.5.tar.gz

Download URL model-maker-0.0.5.tar.gz
Size 189.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a925d461d95ce453e330338a59a5ba3282b222df8123a016e0d10763cf71c0f4
BLAKE2b-256 checksum
How to use checksums
c5fd0ee73366884d91461fb45d413b13636d7c7508c272ae735b9d06c462d528
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page