| Modifier and Type | Field and Description |
|---|---|
| private MODEL_CLASS |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract float | |
| public MODEL_CLASS | |
| public abstract float | Returns: slope of the line produced by linear regression.Slope parameter of the model tells how much on average output change when input changes by one. |
| public abstract Float | |
| protected final void |
| model | back to summary |
|---|---|
| private MODEL_CLASS model | |
| SimpleLinearRegression | back to summary |
|---|---|
| public SimpleLinearRegression() | |
| getIntercept | back to summary |
|---|---|
| public abstract float getIntercept() Intercept tells us the value of prediction when input is zero. | |
| getModel | back to summary |
|---|---|
| public MODEL_CLASS getModel() Implements javax.
| |
| getSlope | back to summary |
|---|---|
| public abstract float getSlope() Slope parameter of the model tells how much on average output change when input changes by one. If it is zero there is no linear dependency between input and output, and data is probably scattered. If it is less then one output grows slower then input. If it is greater than one, then output is growing faster than input. If its negative, then output is lowering as input grows.
| |
| predict | back to summary |
|---|---|
| public abstract Float predict(Float input) Redeclares javax.
| |
| setModel | back to summary |
|---|---|
| protected final void setModel(MODEL_CLASS model) | |