How to use ml-regression-polynomial - 1 common examples

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) {
    super();
    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;
    }
  }

ml-regression-polynomial

Polynomial Regression

MIT
Latest version published 7 months ago

Package Health Score

61 / 100
Full package analysis

Popular ml-regression-polynomial functions

Similar packages