Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ml

mljs1kMIT8.0.0

Machine learning tools

machine, learning, data, mining, datamining

readme

ml.js - Machine learning tools in JavaScript

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.

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.

List of included libraries

Unsupervised learning

Supervised learning

Artificial neural networks (ANN)

  • Feedforward Neural Networks: ML.FNN
  • Self-organizing map / Kohonen networks: ML.SOM

Regression

Optimization

Math

ML.Array

ML.ArrayXY

Functions 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]}

Statistics

Data processing

Utility

License

MIT

changelog

Changelog

8.0.0 (2024-10-21)

⚠ BREAKING CHANGES

  • update dependencies (#186)

Features

Bug Fixes

  • rename rollup to rollup.config.mjs (c63c278)

7.0.0 (2024-02-02)

⚠ BREAKING CHANGES

  • update dependencies
  • update dependencies
  • remove support for Node.js 12
  • remove num-sort package exportation
  • update all dependencies
  • Remove dist from git

release-as

Features

  • add lactame.com action release (2547a9a)
  • Remove dist from git (90392a5)
  • remove num-sort package exportation (4b8c47b)
  • update all dependencies (114d814)
  • update and improve GSD (7222a2c)
  • update dependencies (8adb8f1)

Bug Fixes

  • add missing ml-array-sum package (d471033)
  • correct link to lactame.com to v6.0.0 (65e9ca0)
  • update dependencies to fix nGMCA (9b040d0)

Documentation

Miscellaneous Chores

  • remove support for Node.js 12 (88c0717)
  • update dependencies (88c0717)

6.0.0 (2021-06-10)

⚠ BREAKING CHANGES

  • remove num-sort package exportation
  • update all dependencies
  • Remove dist from git

Features

  • Remove dist from git (90392a5)
  • remove num-sort package exportation (4b8c47b)
  • update all dependencies (114d814)
  • update and improve GSD (7222a2c)

Bug Fixes

  • add missing ml-array-sum package (d471033)
  • correct link to lactame.com to v6.0.0 (65e9ca0)
  • update dependencies to fix nGMCA (9b040d0)

3.5.0 (2018-08-16)

Bug Fixes

  • package: update ml-xsadd to version 2.0.0 (#108) (01c5e25)
  • require ml-random correctly (4d64b91)
  • require xsadd correctly (facfaea)

3.4.0 (2018-08-02)

3.3.0 (2018-07-29)

Bug Fixes

  • DecisionTreeRegression import typo (#97) (c5df0da)
  • package: update ml-kmeans to version 4.0.0 (#101) (57c4a90)
  • readme: fix link to ml-random (3a4b5c3)

Features

3.2.0 (2018-02-21)

Features

  • add random forest regression and classification (#94) (11688e3)

3.1.0 (2018-02-17)

Features

3.0.0 (2018-02-17)

Bug Fixes

  • package: update ml-matrix to version 5.0.0 (#76) (185d1c3)
  • package: update ml-naivebayes to version 3.0.0 (3f312dc)
  • package: update ml-pls to version 1.0.0 (7cf908a)

2.2.0 (2017-07-14)

Features

  • add ml-confusion-matrix (4af2e50)

2.1.1 (2017-06-29)

2.1.0 (2017-06-23)

2.0.0 (2017-02-10)

Bug Fixes

  • package: update ml-fnn to version 3.0.0 (#59) (e7dc062)

1.4.0 (2016-09-23)

1.3.1 (2016-09-05)

1.3.0 (2016-09-05)

Features

  • binary-search: add v1.1.0 of binary search algorithm (2a6d349)

1.2.1 (2016-08-16)

1.2.0 (2016-08-11)

Bug Fixes

  • ml-stat: new access route for array and matrix (3094e35)

Features

  • add optimization package (ceb5319)

1.1.1 (2016-08-03)

1.1.0 (2016-08-03)

1.0.0 (2016-06-22)

0.13.7 (2016-06-16)

0.13.6 (2016-06-15)

0.13.4 (2016-06-13)

0.13.3 (2016-06-13)

0.13.2 (2016-06-10)

0.13.0 (2016-06-10)

0.12.0 (2016-06-09)

0.11.2 (2016-06-02)

0.11.1 (2016-05-31)

0.11.0 (2016-05-31)

0.10.1 (2016-05-30)

0.10.0 (2016-05-26)

0.9.1 (2016-05-23)

0.9.0 (2016-05-19)

0.8.2 (2016-05-14)

0.8.1 (2015-11-19)

0.8.0 (2015-09-15)

0.7.0 (2015-09-07)

0.6.2 (2015-09-02)

0.6.1 (2015-09-01)

0.6.0 (2015-08-20)

0.5.1 (2015-08-20)

0.5.0 (2015-08-20)

0.4.1 (2015-08-05)

0.4.0 (2015-07-24)

0.3.10 (2015-07-08)

0.3.8 (2015-07-07)

0.3.7 (2015-07-03)

0.3.6 (2015-07-01)

0.3.5 (2015-06-30)

0.3.4 (2015-06-29)

0.3.3 (2015-06-23)

0.3.1 (2015-06-17)

0.3.0 (2015-06-17)

0.2.3 (2015-04-24)

0.2.2 (2015-03-16)

0.2.1 (2015-02-02)

0.2.0 (2015-01-27)

0.1.4 (2014-12-09)

0.1.3 (2014-12-09)

0.1.2 (2014-12-03)

0.1.1 (2014-12-01)

0.1.0 (2014-11-18)

0.0.5 (2014-10-28)

0.0.4 (2014-10-28)

0.0.3 (2014-10-28)

0.0.2 (2014-10-28)

0.0.1 (2014-10-28)