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 with several classifiers available: SVMs (based on libsvm), k-NN, random forests, decision trees. It also performs feature selection. These classifiers can be combined in many ways to form different classification systems.

For unsupervised learning, milk supports k-means clustering and affinity propagation.

Milk is flexible about its inputs. It optimised for numpy arrays, but can often handle anything (for example, for SVMs, you can use any dataype and any kernel and it does the right thing).

There is a strong emphasis on speed and low memory usage. Therefore, most of the performance sensitive code is in C++. This is behind Python-based interfaces for convenience.

To learn more, check the docs at http://packages.python.org/milk/ or the code demos included with the source at milk/demos/.

New in 0.3.8

  • Fix compilation on Windows

New in 0.3.7

  • Logistic regression

  • Source demos included (in source and documentation)

  • Add cluster agreement metrics

  • Fix nfoldcrossvalidation bug when using origins

New in 0.3.6

  • Unsupervised (1-class) kernel density modeling

  • Fix for when SDA returns empty

  • weights option to some learners

  • stump learner

  • Adaboost (result of above changes)

New in 0.3.5

  • Fixes for 64 bit machines

  • Functions in measures.py all have same interface now.

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.8.tar.gz (49.3 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for milk-0.3.8.tar.gz
Algorithm Hash digest
SHA256 b5b825598c58ada759cef13466a95e11c89ad4cf2d91f70c5afe79cdef060bef
MD5 d42df53c6cacddf432e30df0293dae50
BLAKE2b-256 07e4145137150f5096a658d6ae9586e19c619c7e3cb3b30b37541dbb4b4b44df

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