LinearRegression
org.encog.ml.fitting.linear

Class LinearRegression

    • Constructor Detail

      • LinearRegression

        public LinearRegression(int theInputCount)
    • Method Detail

      • getWeights

        public double[] getWeights()
      • getInputCount

        public int getInputCount()
        Specified by:
        getInputCount in interface MLInput
        Returns:
        The input.
      • getOutputCount

        public int getOutputCount()
        Specified by:
        getOutputCount in interface MLOutput
        Returns:
        The output count.
      • compute

        public MLData compute(MLData input)
        Description copied from interface: MLRegression
        Compute regression.
        Specified by:
        compute in interface MLRegression
        Parameters:
        input - The input data.
        Returns:
        The output data.
      • calculateError

        public double calculateError(MLDataSet data)
        Description copied from interface: MLError
        Calculate the error of the ML method, given a dataset.
        Specified by:
        calculateError in interface MLError
        Parameters:
        data - The dataset.
        Returns:
        The error.

SCaVis 1.7 © jWork.org