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.
To include the ml.js library in a web page:
<script src="https://www.lactame.com/lib/ml/6.0.0/ml.min.js"></script>
It will be available as the global ML variable. The package is in UMD format.
ML.PCAML.HClustML.KMeansML.NaiveBayesML.KNNML.PLSML.KOPLSML.CrossValidationML.ConfusionMatrixML.DecisionTreeClassifierML.RandomForestClassifierML.SimpleLinearRegressionML.PolynomialRegressionML.MultivariateLinearRegressionML.PowerRegressionML.ExponentialRegressionML.TheilSenRegressionML.RobustPolynomialRegressionML.DecisionTreeRegressionML.RandomForestRegressionML.levenbergMarquardtML.FCNNLSML.Matrix (Matrix class)ML.SVDML.EVDML.CholeskyDecompositionML.LuDecompositionML.QrDecompositionML.SparseMatrixML.KernelML.DistanceML.SimilarityML.distanceMatrixML.XSaddML.nGMCAML.ArrayML.Array.minML.Array.maxML.Array.medianML.Array.meanML.Array.modeML.Array.normedML.Array.rescaleML.Array.sequentialFillML.Array.standardDeviationML.Array.varianceML.ArrayXYFunctions dealing with an object containing 2 properties x and y, both arrays.
Example:
let result = ML.ArrayXY.sortX({ x: [2, 3, 1], y: [4, 6, 2] });
// result = {x: [1,2,3], y: [2,4,6]}
ML.ArrayXY.weightedMerge: Merge abscissa values on similar ordinates and weight the group of abscissa
ML.ArrayXY.maxMerge: Merge abscissa values on similar ordinates and keeps the abscissa with bigger ordinate value
ML.ArrayXY.closestX: Get the closest point for a specific abscissa value
ML.ArrayXY.centroidsMerge: Merge abscissa values if the ordinate value is in a list of centroids
ML.ArrayXY.sortX: Sort a set of point based on the abscissas values
ML.ArrayXY.maxY: Sort a set of point based on the abscissas values
ML.ArrayXY.uniqueX: Ensure that x values are unique
ML.PerformanceML.PCAML.savitzkyGolayML.GSDML.BitArrayML.HashTableML.padArrayML.binarySearchML.numSortML.RandomNo open issues yet, or sync has not completed.