strategy
Interface for estimation strategies.
ExtrapolationImpl
¤
Bases: ABC
, Generic[T, R, S]
Extrapolation model interface.
Source code in probdiffeq/solvers/strategies/strategy.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
begin(state: R, aux: S, /, dt) -> tuple[R, S]
¤
Begin the extrapolation.
Source code in probdiffeq/solvers/strategies/strategy.py
27 28 29 30 |
|
complete(state: R, aux: S, /, output_scale) -> tuple[R, S]
¤
Complete the extrapolation.
Source code in probdiffeq/solvers/strategies/strategy.py
32 33 34 35 |
|
extract(state: R, aux: S) -> T
¤
Extract a solution from a state.
Source code in probdiffeq/solvers/strategies/strategy.py
37 38 39 40 |
|
init(solution: T) -> tuple[R, S]
¤
Initialise a state from a solution.
Source code in probdiffeq/solvers/strategies/strategy.py
22 23 24 25 |
|
initial_condition(tcoeffs) -> T
¤
Compute an initial condition from a set of Taylor coefficients.
Source code in probdiffeq/solvers/strategies/strategy.py
17 18 19 20 |
|
interpolate(state_t0, marginal_t1, *, dt0, dt1, output_scale)
¤
Interpolate.
Source code in probdiffeq/solvers/strategies/strategy.py
42 43 44 45 |
|
right_corner(state: R, aux: S) -> _interp.InterpRes[tuple[R, S]]
¤
Process the state at checkpoint t=t_n.
Source code in probdiffeq/solvers/strategies/strategy.py
47 48 49 50 |
|
Strategy
¤
Estimation strategy.
Source code in probdiffeq/solvers/strategies/strategy.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
|
case_interpolate(t, *, s0: _State, s1: _State, output_scale) -> _interp.InterpRes[_State]
¤
Process the solution in case t>t_n.
Source code in probdiffeq/solvers/strategies/strategy.py
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
|
case_right_corner(state_t1: _State) -> _interp.InterpRes
¤
Process the solution in case t=t_n.
Source code in probdiffeq/solvers/strategies/strategy.py
120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
|
complete(state, /, *, output_scale)
¤
Complete the step after the error has been predicted.
Source code in probdiffeq/solvers/strategies/strategy.py
106 107 108 109 110 111 112 |
|
extract(state: _State)
¤
Extract the solution from a state.
Source code in probdiffeq/solvers/strategies/strategy.py
114 115 116 117 118 |
|
init(t, posterior) -> _State
¤
Initialise a state from a posterior.
Source code in probdiffeq/solvers/strategies/strategy.py
90 91 92 93 94 |
|
initial_condition(taylor_coefficients)
¤
Construct an initial condition from a set of Taylor coefficients.
Source code in probdiffeq/solvers/strategies/strategy.py
86 87 88 |
|
offgrid_marginals(*, t, marginals_t1, posterior_t0, t0, t1, output_scale)
¤
Compute offgrid_marginals.
Source code in probdiffeq/solvers/strategies/strategy.py
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
|
predict_error(state: _State, /, *, dt, vector_field)
¤
Predict the error of an upcoming step.
Source code in probdiffeq/solvers/strategies/strategy.py
96 97 98 99 100 101 102 103 104 |
|