Package Exports
- ml
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ml) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ml
Machine learning tools
Introduction
This library is a compilation of the tools developed in the mljs organization.
It is mainly maintained for use in the browser. If you are working with Node.js, you might prefer to add
to your dependencies only the libraries that you need, as they are usually published to npm more often.
We prefix all our npm package names with ml-
(eg. ml-matrix) so they are easy to find.
Installation
Node.JS
$ npm install ml
Bower
$ bower install ml
Using our CDN in a web page
<script src="https://www.lactame.com/lib/ml/0.4.1/ml.min.js"></script>
Usage
Node.JS
var ML = require('ml');
Browser with AMD
require(['path/to/ml/dist/ml.min'], function (ML) {
// ML.Math ...
});
Browser as global
<script src="path/to/ml/dist/ml.min.js" />
<script>
// ML.Math ...
</script>
Tools
- Root packages
- Matrix: ML.Matrix
- Array Utils: ML.ArrayUtils
- Bit array operations: ML.BitArray
- Math:
ML.Math
- Distance: ML.Math.Distance
- Savitzky-Golay filter: ML.Math.SG
- Stat: ML.Stat
- Array:
ML.Stat.array
- Matrix:
ML.Stat.matrix
- Principal component analysis (PCA): ML.Stat.PCA
- Array:
- Random number generation:
ML.RNG
- XORShift-add: ML.RNG.XSadd
- Clustering:
ML.Clust
- Hierarchical clustering: ML.Clust.hclust
- K-means: ML.Clust.kmeans
- Supervised learning:
ML.SL
- Support vector machines: ML.SL.SVM
- Naive Bayes: ML.SL.NaiveBayes
- K-Nearest Neighbor: ML.SL.KNN
- Partial least squares (PLS): ML.SL.PLS
- Neural networks:
ML.NN