How to use the ml-regression-polynomial function in ml-regression-polynomial

To help you get started, we’ve selected a few ml-regression-polynomial examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mljs / regression / src / regression / potential-regression.js View on Github external
constructor(x, y, M) {
    if (x === true) {
      // reloading model
      this.A = y.A;
      this.M = y.M;
    } else {
      var n = x.length;
      if (n !== y.length) {
        throw new RangeError('input and output array have a different length');

      var linear = new PolynomialRegression(x, y, [M]);
      this.A = linear.coefficients[0];
      this.M = M;


Polynomial Regression

Latest version published 2 days ago

Package Health Score

68 / 100
Full package analysis

Popular ml-regression-polynomial functions

Similar packages