Package jdistlib.inference
Interface DifferentiableLogDensity
- All Superinterfaces:
LogDensity
- All Known Subinterfaces:
BatchedDifferentiableLogDensity,ComputeBackedLogDensity
- All Known Implementing Classes:
AcceleratedLogisticRegression,BayesianModel,EvaluationCounter,ModelEvaluator,ReverseModeLogDensity
A log density capable of adding its gradient to caller-owned storage.
-
Method Summary
Modifier and TypeMethodDescriptiondefault doublelogDensity(double[] state) doublelogDensityAndGradient(double[] state, double[] gradient) Evaluates the log density and replacesgradientwith its gradient.
-
Method Details
-
logDensityAndGradient
double logDensityAndGradient(double[] state, double[] gradient) Evaluates the log density and replacesgradientwith its gradient. -
logDensity
default double logDensity(double[] state) - Specified by:
logDensityin interfaceLogDensity
-