ml

Stars
1

ml

A pattern recognition & machine learning package for Python. It provides:

  1. Classification algorithms, such as
    the k-nearest neighbors algorithm, a classifier by generative approaches, the simple perceptron, and classification with MLP : multilayer perceptron,
  2. Clustering algorithms, such as
    K-means, competitive learning, the EM algorithm(, and mean shift),
  3. Regression analysis including the standard linear regression, Ridge regression, (lasso, ...)
  4. Feature extraction & dimensionality reduction, such as
    PCA : principal component analysis, whitening transformation, LDA : linear discriminant analysis, and autoencoders (simple & stacked),
  5. Evaluation of those algorithms above.

Author

Examples

Autoencoder

An autoencoder is a type of neural networks. Typically, it constists of same-sized input & output layers and some hidden layers with less number of units and is trained to be able to restore the input. As the result, the hidden layer's activation pattern, which has less dimensions than the input, can be interpreted to hold "essential" information about the input patter in a sense. Therefore, it is used for feature extraction or dimensionality reduction.

Here's an example using the MNIST handwritten digits dataset. See tests/test_ae.py for the details.

Input Output

Clustering algorithms

Here're some examples for clustering algorithms. See tests/test_cluster2.py for the details.

  • Input
  • Outputs
K-means Competitive Learning EM Algorithm
Related Projects