public abstract class SimpleLinearRegression<MODEL_CLASS> extends Object implements Regressor<Float,Float>, ModelProvider<MODEL_CLASS>
| Constructor and Description |
|---|
SimpleLinearRegression() |
| Modifier and Type | Method and Description |
|---|---|
abstract float |
getIntercept()
The value of output when input is zero
|
MODEL_CLASS |
getModel() |
abstract float |
getSlope()
How much on average output change when input changes by one.
|
abstract Float |
predict(Float inputs) |
protected void |
setModel(MODEL_CLASS model) |
public SimpleLinearRegression()
public MODEL_CLASS getModel()
getModel in interface ModelProvider<MODEL_CLASS>protected void setModel(MODEL_CLASS model)
public abstract float getSlope()
public abstract float getIntercept()
Copyright © 2020. All rights reserved.