Class IrisLinearBinary

A logistic regression model for Iris dataset.

Hierarchy

  • IrisLinearBinary

Constructors

Properties

Methods

Constructors

Properties

coef: number[]
intercept: number

Methods

  • Predict on one data point

    Returns

    Predicted classes

    Parameters

    • xs: number[][]

      Array of data points to predict

    Returns (1 | 0)[]

  • Predict on one data point

    Returns

    Predicted probabilities

    Parameters

    • xs: number[][]

      Array of data points to predict

    Returns number[]

Generated using TypeDoc