How to use ml-regression-base - 2 common examples

To help you get started, we’ve selected a few ml-regression-base 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
toString(precision) {
    return `f(x) = ${maybeToPrecision(this.A, precision)} * x^${this.M}`;
  }
github mljs / regression / src / regression / potential-regression.js View on Github external
toLaTeX(precision) {
    if (this.M >= 0) {
      return (
        `f(x) = ${maybeToPrecision(this.A, precision)}x^{${this.M}}`
      );
    } else {
      return (
        `f(x) = \\frac{${
          maybeToPrecision(this.A, precision)
        }}{x^{${
          -this.M
        }}}`
      );
    }
  }

ml-regression-base

Base class for regression modules

MIT
Latest version published 8 months ago

Package Health Score

61 / 100
Full package analysis

Popular ml-regression-base functions

Similar packages