This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

.. image::

.. image::


Django-Estimators helps persist and track machine learning models aka estimators.

You can use this to version models, track and deploy models. It's highly extensible and can be used with almost any python object (scikit-learn, numpy arrays, modules, methods).


Quick start

1. Add "estimators" to your INSTALLED_APPS django setting like this::


2. Run `python migrate` to create the estimators table.

3. Run `python shell` and get create new models like so::

# uses sklearn, but any object would work
from sklearn.ensemble import RandomForestClassifier
rfc = RandomForestClassifer()

from estimators.models import Estimator
est = Estimator()
est.estimator = rfc
est.description = 'a simple stats model'

4. Retrieve your model, using the usual django orm at a later time::

from estimators.models import Estimator
est = Estimator.objects.filter(description='a simple stats model')

# now predict using a given feature matrix


Django-estimators is on PyPI, so just run: ::

pip install django-estimators

Using with Notebook (or without django shell)

In order to have access to the django db, you'll need to set up the environment variable to load up your django project. In ipython, you can set the environment variable `DJANGO_SETTINGS_MODULE` to `your_project_name.settings` like so::

import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "your_project_name.settings")
import django

Now you can continue on as usual... ::

from estimators.models import Estimator

Use Cases

If you already have the model::

est = Estimator.get_by_estimator(object)

If you know the unique hash of the model::

est = Estimator.get_by_estimator_hash('358e500ba0643ec82d15cbfa8adc114c')

If you aren't sure if it exists, the recommended method is to use the `get_or_create` method::

est = Estimator.get_or_create(object)

Development Installation

To install the latest version of django-estimators, clone the repo, change directory to the repo, and pip install it into your current virtual environment.::

$ git clone
$ cd django-estimators
$ <activate your="" project’s="" virtual="" environment="">
(virtualenv) $ pip install -e . # the dot specifies for this current repo

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_estimators-0.1.0.dev0-py2.py3-none-any.whl (12.3 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Sep 16, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting