solver#
Classes#
A solver that uses |
Module Contents#
- class smolgp.solvers.parallel.solver.ParallelStateSpaceSolver(kernel: smolgp.kernels.base.StateSpaceModel, X: tinygp.helpers.JAXArray, noise: tinygp.helpers.JAXArray)[source]#
Bases:
equinox.ModuleA solver that uses
jax.lax.associative_scanto implement parallel Kalman filtering and RTS smoothing- X: tinygp.helpers.JAXArray#
- noise: tinygp.helpers.JAXArray#
- condition(y, return_v_S=False) tinygp.helpers.JAXArray[source]#
Compute the Kalman predicted, filtered, and RTS smoothed means and covariances at each of the input coordinates
- predict(X_test, conditioned_results) tinygp.helpers.JAXArray[source]#
Algorithm for making predictions at arbitrary coordinates X_test
- Parameters:
X_test – The test coordinates.
conditioned_results – The output of self.condition
- Returns:
Predicted means of the states at X_test pred_var : Predicted variances of the states at X_test
- Return type:
pred_mean
- There are three cases:
- Retrodictionsmoothing from the first data point
using the prior as the prediction
- Interpolationfiltering from most recent data point
and smoothing from next future point
Extrapolation : predicting from final filtered point