Package de.jungblut.math.minimize
Interface CostFunction
-
- All Known Implementing Classes:
AbstractMiniBatchCostFunction,ConditionalLikelihoodCostFunction,LogisticRegressionCostFunction,MultilayerPerceptronCostFunction,NegatedCostFunction,RBMCostFunction
public interface CostFunctionCost function interface to be implemented when using with a optimizer like conjugate gradient for example.- Author:
- thomas.jungblut
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CostGradientTupleevaluateCost(de.jungblut.math.DoubleVector input)Evaluation for the cost function to retrieve cost and gradient.
-
-
-
Method Detail
-
evaluateCost
CostGradientTuple evaluateCost(de.jungblut.math.DoubleVector input)
Evaluation for the cost function to retrieve cost and gradient.- Parameters:
input- a given input vector- Returns:
- a tuple consists of J (cost) and a vector X which is the gradient of the input.
-
-