Skip to main content

Version control for machine learning

Project description

About

mummify is a version control tool for machine learning. It's simple, fast, and designed for model prototyping.

Quickstart

Usage

Add mummify.log(<string>) to the bottom of a machine learning model:

from sklearn.datasets import load_wine
from sklearn.neighbors import KNeighborsClassifier

import mummify

data = load_wine()
X, y = data.data, data.target

model = KNeighborsClassifier(n_neighbors=4)
model.fit(X, y)
accuracy = round(model.score(X, y), 4)

mummify.log(f'Accuracy: {accuracy}')

Run the model at the command line:

python model.py

Edit the model to implement another algorithm:

...
model = LogisticRegression()
model.fit(X_train, y_train)
accuracy = model.score(X_test, y_test)

mummify.log(f'Test accuracy: {accuracy}')

Inspect model history at the command line with:

mummify history

And peek at the logged messages at the command line with:

cat mummify.log

Switch to an earlier version of the model:

mummify switch <id>

mummify will persist snapshots and the mummify.log file between switches.

Installation

pip install mummify

Contribute

For feature requests or bug reports, please use Github Issues

Project details


Download files

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

Files for mummify, version 1.3.0
Filename, size File type Python version Upload date Hashes
Filename, size mummify-1.3.0.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page