Skip to main content

Maisie (stable)

Azure DevOps Badge

Maisie (development)

Azure DevOps Badge

Maisie Sphinx Theme

Azure DevOps Badge

Documentation

Read the Docs Badge

PyPI

PyPI Badge

DockerHub

DockerHub Pulls Badge

1 Features

Could archiving, storing, managing and organizing machine learning models be done efficiently and with great focus on user experience? Sure, Maisie does just that.

Maisie is a friendly, easy to use assistant that consists of:

  • Web Application written in React

  • Backend API written in Python, Flask

  • Client Application/Package written in Python and hosted on PyPI

It integrates seamlessly with your favorite tools and provides you with all the important data, such as:

  • Git revisions for all trained models, as well as information about source branches

  • Searchable, filterable hyperparameters, parameters and metrics

  • A single identifying dataset name, as well as an optional description

  • Permanent URLs for easy sharing and downloading of stored models

2 Installing

You can get the most current package from PyPI

$ pip install Maisie

Using it in your training environment is fairly straightforward:

import maisie
from sklearn.externals import joblib

# Define your model here

model.fit(X, y)
model_filename = "example_model.pkl"
joblib.dump(model, model_filename)

# Define your metrics, fetch parameters and hyperparameters

models = maisie.Models()
models.upload(
    name="My first uploaded model",
    filename=model_filename,
    dataset_name="Singly Identifying Dataset Name",
    metrics={"accuracy": accuracy},
    hyperparameters=hyperparameters,
    parameters=parameters,
)

3 Deploying

3.1 Using docker-compose

This repository provides a pre-configured docker-compose.yml file that contains sensible default options.

Before starting the containers, you should create a local .env file using the included .env.sample.

To start up all services, run:

$ docker-compose up

To stop your services, you can press Ctrl+C/Ctrl+D. If you started the services in the background using docker-compose up -d, the correct way to do this would be:

$ docker-compose stop

You can learn more about Docker Compose by clicking here.

3.2 Fetching individual images

Both frontend and backend images are automatically published to Docker Hub as soon as new stable release is made available.

Links

For reference, you can look at the sample Ansible playbook that deploys all containers to a specified host using the locally configured .env file.

4 Contributing

4.1 Getting started

  1. Clone the repository from the develop branch

$ git clone -b develop git@github.com:nokia-wroclaw/innovativeproject-ml-models-management.git
  1. Install pre-commit

  2. Inside the project’s root directory install all required githooks:

$ pre-commit install
  1. To start all required services for local development, run:

$ docker-compose up
  1. You’re all set up!

4.2 Fixing existing issues

  1. Pick one of the open issues or create a new one

  2. Create a new branch named issue-[number]-[short description] derived from the develop branch, for example

$ git checkout -b issue-42-project-removal-permissions develop
  1. Make sure your implementation fixes the actual problem and is well tested.

4.3 Implementing new features

When implementing new features, you should start by creating a new branch named feature-[short description] derived from the develop branch, for example

$ git checkout -b feature-new-user-profile develop

4.4 Commiting the changes

To run all tests and check whether all required pre-commit githooks are satisfied, run

$ pre-commit run --all-files

Your commit message should briefly summarize the changes (if possible) in plain English. To learn how to write a proper commit message, check out this article.

When ready, create a new pull request compared with the develop branch set as a base branch.

5 Documentation

For the lastest stable release, the documentation can be seen at docs.maisie.dev.

Metadata

Release files for Maisie 0.1.6

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

Source distribution (sdist)

Source distribution for Maisie 0.1.6
File Size Uploaded
Maisie-0.1.6.tar.gz 14.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Maisie 0.1.6
File Interpreter ABI Platform
Maisie-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 37.0 kB

Release files / Maisie-0.1.6.tar.gz

Download URL Maisie-0.1.6.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bf70a61b977ffffdd8e2bb2ba83aeaa9f351f3868ecb8eaf5c2d860a55e8dfb7
BLAKE2b-256 checksum
How to use checksums
d9c23f03383bd7a530724fa34d67c64881dbf8b36005a76422435e78fa36bfd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

Release files / Maisie-0.1.6-py3-none-any.whl

Download URL Maisie-0.1.6-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a95815eb060415a58f0f2aadaea080619d694fa29a2af5755222111701c2ee9
BLAKE2b-256 checksum
How to use checksums
507bae86cd32851c59497d48dd3cfb049f4a7e778d460b651a7933c09986ef37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

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