runlmc.lmc.stochastic_deriv module¶
-
class
runlmc.lmc.stochastic_deriv.StochasticDeriv(alpha, rs, inv_rs, n_it)[source]¶ Bases:
runlmc.lmc.derivative.DerivativeGiven the inverse of random binary vectors inv_rs with respect to some kernel \(K\) and the similar inverse alpha of observations \(K^{-1}y\), this class produces the derivatives of \(K\) with respect to its hyperparameters.
-
class
runlmc.lmc.stochastic_deriv.StochasticDerivService(metrics, pool, n_it, tol)[source]¶ Bases:
objectThis service generates
runlmc.lmc.Derivativeinstances with pre-specified configurations for recording metrics or using multiprocessing, which enables decoupling of the math from the systems in the GP logic.Parameters: - metrics – a
runlmc.lmc.metrics.Metricsinstance or None (if no metrics are to be recorded) - pool – pool for parallel processing
- n_it – iterations to use in stochastic trace approximation
- tol – tolerance in inversion routine
Variables: metrics – the metrics instance used by this class
- metrics – a