LinearSolverPolicy¶
- class probnum.linalg.solvers.policies.LinearSolverPolicy¶
Bases:
abc.ABCPolicy of a (probabilistic) linear solver.
The policy \(\pi(s \mid \mathsf{A}, \mathsf{H}, \mathsf{x}, A, b)\) of a linear solver returns a vector to probe the linear system with, typically via multiplication, resulting in an observation. Policies can either be deterministic or stochastic depending on the application.
See also
ConjugateDirectionsPolicyPolicy returning \(A\)-conjugate actions.
Methods Summary
__call__(solver_state)Return an action for a given solver state.
Methods Documentation
- __call__(solver_state)[source]¶
Return an action for a given solver state.
- Parameters
solver_state (
ProbabilisticLinearSolverState) – Current state of the linear solver.- Return type