Class DerivativeChecker
Class used to check analytic derivatives using finite difference approximation
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Math
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public static class DerivativeChecker
Methods
CheckDerivatives(FunctionEval, Vector)
Check whether "func" correctly calculates derivatives
Declaration
public static bool CheckDerivatives(FunctionEval func, Vector x0)
Parameters
Type | Name | Description |
---|---|---|
FunctionEval | func | Return the objective and calculates gradients |
Vector | x0 | The point to perform the check around |
Returns
Type | Description |
---|---|
Boolean | Whether the derivatives are correctly calculated. |