Skip to main content

The Machine Learning Hub

UNDER DEVELOPMENT

Downloads Downloads Downloads

Introduction

The machine learning hub is an open source project hosted on github aimed at easily sharing pre-built machine learning models. The models are accessed and managed using the ml command from the mlhub package designed to install the model and run a demonstration within 5 minutes. Each model has been tested on Ubuntu (GNU/Linux).

Visit the repository index on mlhub.ai where the models themselves can be browsed.

Quick Start

The command line interface can be installed using PyPi:

$ pip3 install mlhub

Once installed you will be able to run the sample 'rain' model assuming that you have the free and open source R statistical software package installed. The TL;DR version is below. Note that you type the command ml ... and that everything from the # to the end of the line is ignored (it's a comment):

$ ml install   rain # Install the model named 'rain'.
$ ml demo      rain # Run the demonstration of the model
$ ml display   rain # Graphical display of pre-built model.

The following commands are available and below is a brief description of each command:

$ ml                # Show a usage message.
$ ml available      # List of pre-buld models on the MLHub.
$ ml installed      # List of pre-built models installed locally
$ ml install   rain # Install the model named 'rain'.
$ ml readme    rain # View background information about the model.
$ ml configure rain # Install required dependencies.
$ ml commands  rain # List of commands supported by the model.
$ ml demo      rain # Run the demonstration of the model
$ ml print     rain # Textual summary of the model.
$ ml display   rain # Graphical display of pre-built model.
$ ml score     rain # Run model on your own data.

Different model packages will have different dependencies and these will be installed by the configure command.

Quick Start: Azure DSVM

A particularly attractive and simple way to get started with exploring the mlhub functionality is to fire up a Ubuntu Data Science Virtual Machine (DSVM) on Azure for as little as USD10 per month for quite a small server or USD90 for a reasonable one. You can get free credit (USD200) from Microsoft to trial the DSVM.

Using this virtual machine will save a lot of time compared with setting up your own machine with the required dependencies, which of course you can do if you wish as all the dependencies are open source.

To set up the virtual machine, with an Azure subscription log in to the portal and add a new Data Science Virtual Machine for Linux (Ubuntu). You need to provide a name (for the virtual machine), a user name and a password, and then create a new resource group and give it a name, and finally choose a location. Go with all the defaults for everything else, except choose a size to suit the budget (B1s is cheap though a D2s is a better interactive experience). Note that you are only charged whilst the machine is fired up so USD90 per month is no where near what you will spend if you only fire up the server when you need.

Once the DSVM is set up go to its Overview page and click on DNS name Configure and provide a name by which to refer to the server publicly (e.g., myml.westus2.cloudapp.azure.com).

We now have a server ready to showcase the pre-built Machine Learning models. There are several options to connect to the server but a recommended one is to use X2Go which supports Linux, Windows, and Mac. Install it and point it to your server (e.g., myml.westus2.cloudapp.azure.com) in the setup.

Connect to the DSVM. Close the Firefox window that pops up. Click on the terminal icon down the bottom, and you are ready to go:

$ pip install mlhub
$ ml
$ ml available

etc.

Pre-Built Model Archives

A model is a zip file archived as .mlm files and hosted in a repository. The public repository is mlhub.ai. The ml command can install the pre-built model locally, ready to run a demo, to print and display the model, and to score new data using the model. Some models provide ability to retrain the model with user provided data.

Contributing Models to ML Hub

Anyone is welcome to contribute a pre-built model package to ML Hub. Please submit a pull request through github.

Installing Pip3

On Ubuntu this is as simple as:

$ sudo apt install python3-pip

Alternative pip Install

Depending on your setup of pip, you may need to use:

$ pip3 install mlhub

The executable may be placed into ~/.local/bin which will need to be on your path. Edit your shell startup which is either .profile or .bashrc, etc:

PATH="$HOME/.local/bin:$PATH"

Alternative Install

A tar.gz containing the mlhub package and the command line interface is available as mlhub_1.6.7.tar.gz within the distribution folder of the MLHub.

To install from the tar.gz file:

$ wget https://mlhub.ai/dist/mlhub_1.6.7.tar.gz
$ pip install mlhub_1.6.7.tar.gz
$ ml

Or extract the above downloaded .tar.gz and install:

$ wget https://mlhub.ai/dist/mlhub_1.6.7.tar.gz
$ tar xvf mlhub_1.6.7.tar.gz
$ cd mlhub
$ python3 setup.py install --user

Contributions

The open source mlhub command line tool (ml) and sample models are being hosted on github and contributions to both the command line tool and contributions of new open source pre-built machine learning models are most welcome. Feel free to submit pull requests.

Metrics

MLHub PyPI download statistics: https://pepy.tech/project/mlhub

Downloads Downloads Downloads

MLHub Dev PyPI download statistics: https://pepy.tech/project/mlhubdev

Downloads Downloads Downloads

Metadata

Release files for mlhubdev 3.4.0

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

Source distribution (sdist)

Source distribution for mlhubdev 3.4.0
File Size Uploaded Provenance
mlhubdev-3.4.0.tar.gz 47.5 kB Without provenance Details

Release files / mlhubdev-3.4.0.tar.gz

Download URL mlhubdev-3.4.0.tar.gz
Size 47.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f8716f1adcf5f02c7ad2880d0fb5039b9b37e339115d5765cd761cd302c63c49
BLAKE2b-256 checksum
How to use checksums
721f878ecf041446d6f862ad233d94fbeabe33f42c5341f6c771175a379d8b8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.6.7

Security for mlhubdev 3.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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