Machine learning tools in JavaScript
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.
Node.JS
$ npm install ml
Bower
$ bower install ml
Using our CDN in a web page
<script src="https://www.lactame.com/lib/ml/2.0.0/ml.min.js"></script>
var ML = require('ml');
require(['path/to/ml/dist/ml.min'], function (ML) {
// ML.Math ...
});
<script src="path/to/ml/dist/ml.min.js" />
<script>
// ML.Math ...
</script>
- Root packages
- Array Utils:
ML.ArrayUtils
- Bit array operations:
ML.BitArray
- Hash table:
ML.HashTable
- Matrix:
ML.Matrix
- Pad array:
ML.PadArray
- Regression:
ML.Regression
- Binary search:
ML.binarySearch
- Number comparison functions for sorting:
ML.numSort
- Array Utils:
- Math:
ML.Math
- Distance:
ML.Math.Distance
- Similarity:
ML.Math.Similarity
- DistanceMatrix:
ML.Math.DistanceMatrix
- Savitzky-Golay filter:
ML.Math.SG
- Savitzky-Golay generalized:
ML.Math.SGG
- Matrix:
ML.Math.Matrix
(alias ofML.Matrix
) - Sparse matrix:
ML.Math.SparseMatrix
- Kernels:
ML.Math.Kernel
- Distance:
- Stat:
ML.Stat
- Array:
ML.Stat.array
- Matrix:
ML.Stat.matrix
- Principal component analysis (PCA):
ML.Stat.PCA
- Performance:
ML.Stat.Performance
- Array:
- Optimization:
ML.Optimization
- BellOptimizer:
ML.Optimization.BellOptimizer
- LevenbergMarquardt:
ML.Optimization.LevenbergMarquardt
- BellOptimizer:
- Random number generation:
ML.RNG
- XORShift-add:
ML.RNG.XSadd
- XORShift-add:
- Clustering:
ML.Clust
- Hierarchical clustering:
ML.Clust.hclust
- K-means:
ML.Clust.kmeans
- Hierarchical clustering:
- 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
- Cross-validation utility:
ML.SL.CrossValidation
(aliasML.SL.CV
)
- Support vector machines:
- Neural networks:
ML.NN