Skip to main content

Machine Learning Toolkit

Project description

Machine Learning in Python

Milk is a machine learning toolkit in Python. Its focus is on supervised classification and on enabling medium scale learning (defined as data that barely fits in main memory).

milk wraps libsvm in a Pythonic way (the models learned have weight arrays that are accessible from Python directly, the models are pickle()able, you can pass any Python function as a kernel,….)

It also supports k-means clustering with an implementation that is careful not to use too much memory (if your dataset fits into memory, milk can cluster it).

It does not have its own file format or in-memory format, which I consider a feature as it works on numpy arrays directly (or anything that is convertible to a numpy-array) without forcing you to copy memory around. For SVMs, you can even just use any datatype if you have your own kernel function.

New in 0.3.4

  • Random forest learners

  • Decision trees sped up 20x

  • Much faster gridsearch (finds optimum without computing all folds)

Features

  • Random forests

  • Self organising maps

  • SVMs. Using the libsvm solver with a pythonesque wrapper around it.

  • Stepwise Discriminant Analysis for feature selection.

  • Non-negative matrix factorisation

  • K-means using as little memory as possible.

  • Affinity propagation

License: MIT Author: Luis Pedro Coelho (with code from LibSVM and scikits.learn) Website: http://luispedro.org/software/milk API Documentation: http://packages.python.org/milk/

Project details


Download files

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

Source Distribution

milk-0.3.5.tar.gz (43.2 kB view details)

Uploaded Source

File details

Details for the file milk-0.3.5.tar.gz.

File metadata

  • Download URL: milk-0.3.5.tar.gz
  • Upload date:
  • Size: 43.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for milk-0.3.5.tar.gz
Algorithm Hash digest
SHA256 75c1368c875395f95daa67abc4fa705d8c024ed7b0a982e65b4870df99d03da3
MD5 014a31fd30c25d05c12146611c0318f2
BLAKE2b-256 dd3aa739006e9f1b8c38b921fb8d10902ceed6d285e4e3fa16521de8fd3e2bdb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page