SimpleLinearRegression

public final class SimpleLinearRegression implements Regressor

Constructors

Link copied to clipboard
public SimpleLinearRegression SimpleLinearRegression()

Functions

Link copied to clipboard
public Unit fit(MultiArray<Float, D2> X, NDArray<Float, D2> y)
Link copied to clipboard
public final Float getSlope()
Link copied to clipboard
public final Float getYIntercept()
Link copied to clipboard
public NDArray<Float, D2> predict(MultiArray<Float, D2> X)
Link copied to clipboard
public final Unit setSlope(Float slope)
Link copied to clipboard
public final Unit setYIntercept(Float yIntercept)

Properties

Link copied to clipboard
private Float slope
Link copied to clipboard
private Float yIntercept