Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Machine learning tool for regression.

Project Description

mltool is a simple Learning to Rank tool to build a regression tree based ranking model. Currently mltool supports simple CART and Random Forest. The implementation is strongly inspired by rt-rank, but it lacks the support of Gradient Boosting Regression Trees.



Despite rt-rank, mltool provides:

  • A parameter to set the seed for the random number generator to make the training deterministic
  • Serializable model
  • Show feature information gain statistics at the end of the training
  • Can be used as an API

Some highlights compared to other Random Forest implemented for Python:

  • The implementation of the Random Forest makes use of numpy and it is quite optimized
  • Parallel Random Forest training


Install from PyPI using pip:

$ pip install mltool

Now you can run mltool:

$ mltool -h


The documentation is hosted by Read the Docs at the following url:


  • add support for Stochastic Gradient Boosting Regression Trees
  • add support for simple regression and/or classification (i.e. not just focus on ranking)
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
mltool-0.6.tar.gz (9.8 kB) Copy SHA256 Checksum SHA256 Source Apr 9, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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