Interface CostFunction

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double getCost​(double[] theta)
      returns the cost for a current assignment to the parameter vector theta.
      double getPartialDerivation​(double[] theta, int i)
      returns the partial derivation of the i-th index of the function
    • Method Detail

      • getCost

        double getCost​(double[] theta)
        returns the cost for a current assignment to the parameter vector theta.
        Parameters:
        theta - double[] the parameter vector
        Returns:
        the cost for the current assignment of the vector.
      • getPartialDerivation

        double getPartialDerivation​(double[] theta,
                                    int i)
        returns the partial derivation of the i-th index of the function
        Parameters:
        theta - the weight vector
        index - the index of the weight, of which the derivative is to be returned.
        Returns:
        slope of the curve in the dimension i (value of the partial derivation in the i-th dimension)