org.encog.ml.fitting.linear
Class LinearRegression
- java.lang.Object
-
- org.encog.ml.fitting.linear.LinearRegression
-
- All Implemented Interfaces:
- MLError, MLInput, MLInputOutput, MLMethod, MLOutput, MLRegression
public class LinearRegression extends java.lang.Object implements MLRegression, MLError
-
-
Constructor Summary
Constructors Constructor and Description LinearRegression(int theInputCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecalculateError(MLDataSet data)Calculate the error of the ML method, given a dataset.MLDatacompute(MLData input)Compute regression.intgetInputCount()intgetOutputCount()double[]getWeights()
-
-
-
Method Detail
-
getWeights
public double[] getWeights()
-
getInputCount
public int getInputCount()
- Specified by:
getInputCountin interfaceMLInput- Returns:
- The input.
-
getOutputCount
public int getOutputCount()
- Specified by:
getOutputCountin interfaceMLOutput- Returns:
- The output count.
-
compute
public MLData compute(MLData input)
Description copied from interface:MLRegressionCompute regression.- Specified by:
computein interfaceMLRegression- Parameters:
input- The input data.- Returns:
- The output data.
-
calculateError
public double calculateError(MLDataSet data)
Description copied from interface:MLErrorCalculate the error of the ML method, given a dataset.- Specified by:
calculateErrorin interfaceMLError- Parameters:
data- The dataset.- Returns:
- The error.
-
-
DMelt 3.0 © DataMelt by jWork.ORG