public class MarkingBasedSelectionWeightCostFunction extends java.lang.Object implements CostFunction
Constructor and Description |
---|
MarkingBasedSelectionWeightCostFunction(java.util.Map<java.lang.String,int[]> markingBasedSelections) |
Modifier and Type | Method and 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) |
public MarkingBasedSelectionWeightCostFunction(java.util.Map<java.lang.String,int[]> markingBasedSelections)
public int getSum(int... array)
public double getPartialDerivation(double[] theta, int i)
getPartialDerivation
in interface CostFunction
theta
- the weight vectorpublic double getCost(double[] theta)
CostFunction
getCost
in interface CostFunction
theta
- double[] the parameter vector