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 MLInput
public int getOutputCount()
getOutputCount
in interface MLOutput
public MLData compute(MLData input)
MLRegression
compute
in interface MLRegression
input
- The input data.public double calculateError(MLDataSet data)
MLError
calculateError
in interface MLError
data
- The dataset.Copyright © 2014. All Rights Reserved.