Class MarkingBasedSelectionWeightCostFunction

  • All Implemented Interfaces:
    CostFunction

    public class MarkingBasedSelectionWeightCostFunction
    extends java.lang.Object
    implements CostFunction
    • Method Summary

      All Methods Instance Methods Concrete 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)
      Simply return the average error (not squared)
      int getSum​(int... array)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MarkingBasedSelectionWeightCostFunction

        public MarkingBasedSelectionWeightCostFunction​(java.util.Map<java.lang.String,​int[]> markingBasedSelections)
    • Method Detail

      • getSum

        public int getSum​(int... array)
      • getPartialDerivation

        public double getPartialDerivation​(double[] theta,
                                           int i)
        Simply return the average error (not squared)
        Specified by:
        getPartialDerivation in interface CostFunction
        Parameters:
        theta - the weight vector
        Returns:
        slope of the curve in the dimension i (value of the partial derivation in the i-th dimension)
      • getCost

        public double getCost​(double[] theta)
        Description copied from interface: CostFunction
        returns the cost for a current assignment to the parameter vector theta.
        Specified by:
        getCost in interface CostFunction
        Parameters:
        theta - double[] the parameter vector
        Returns:
        the cost for the current assignment of the vector.