org.encog.ml.fitting.linear
public class LinearRegression extends Object implements MLRegression, MLError
| Constructor and Description |
|---|
LinearRegression(int theInputCount) |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateError(MLDataSet data)
Calculate the error of the ML method, given a dataset.
|
MLData |
compute(MLData input)
Compute regression.
|
int |
getInputCount() |
int |
getOutputCount() |
double[] |
getWeights() |
public double[] getWeights()
public int getInputCount()
getInputCount in interface MLInputpublic int getOutputCount()
getOutputCount in interface MLOutputpublic MLData compute(MLData input)
MLRegressioncompute in interface MLRegressioninput - The input data.public double calculateError(MLDataSet data)
MLErrorcalculateError in interface MLErrordata - The dataset.Copyright © 2014. All Rights Reserved.