@@ -766,7 +766,7 @@ def initial_condition(self):
766766 return posterior , self .prior .output_scale
767767
768768
769- def solver_mle (extrapolation , / , * , correction , prior , ssm ):
769+ def solver_mle (strategy , * , correction , prior , ssm ):
770770 """Create a solver that calibrates the output scale via maximum-likelihood.
771771
772772 Warning: needs to be combined with a call to stats.calibrate()
@@ -777,15 +777,15 @@ def step_mle(state, /, *, dt, vector_field, calibration):
777777 output_scale_prior , _calibrated = calibration .extract (state .output_scale )
778778
779779 prior_discretized = prior .discretize (dt )
780- hidden , extra = extrapolation .begin (
780+ hidden , extra = strategy .begin (
781781 state .hidden , state .aux_extra , prior_discretized = prior_discretized
782782 )
783783 t = state .t + dt
784784 error , _ , corr = correction .estimate_error (
785785 hidden , vector_field = vector_field , t = t
786786 )
787787
788- hidden , extra = extrapolation .complete (
788+ hidden , extra = strategy .complete (
789789 hidden , extra , output_scale = output_scale_prior
790790 )
791791 hidden , observed = correction .complete (hidden , corr )
@@ -800,7 +800,7 @@ def step_mle(state, /, *, dt, vector_field, calibration):
800800 prior = prior ,
801801 calibration = _calibration_running_mean (ssm = ssm ),
802802 step_implementation = step_mle ,
803- extrapolation = extrapolation ,
803+ extrapolation = strategy ,
804804 correction = correction ,
805805 requires_rescaling = True ,
806806 )
@@ -829,12 +829,12 @@ def extract(state, /):
829829 return _Calibration (init = init , update = update , extract = extract )
830830
831831
832- def solver_dynamic (extrapolation , * , correction , prior , ssm ):
832+ def solver_dynamic (strategy , * , correction , prior , ssm ):
833833 """Create a solver that calibrates the output scale dynamically."""
834834
835835 def step_dynamic (state , / , * , dt , vector_field , calibration ):
836836 prior_discretized = prior .discretize (dt )
837- hidden , extra = extrapolation .begin (
837+ hidden , extra = strategy .begin (
838838 state .hidden , state .aux_extra , prior_discretized = prior_discretized
839839 )
840840 t = state .t + dt
@@ -845,7 +845,7 @@ def step_dynamic(state, /, *, dt, vector_field, calibration):
845845 output_scale = calibration .update (state .output_scale , observed = observed )
846846
847847 prior_ , _calibrated = calibration .extract (output_scale )
848- hidden , extra = extrapolation .complete (hidden , extra , output_scale = prior_ )
848+ hidden , extra = strategy .complete (hidden , extra , output_scale = prior_ )
849849 hidden , corr = correction .complete (hidden , corr )
850850
851851 # Return solution
@@ -855,7 +855,7 @@ def step_dynamic(state, /, *, dt, vector_field, calibration):
855855 return _ProbabilisticSolver (
856856 prior = prior ,
857857 ssm = ssm ,
858- extrapolation = extrapolation ,
858+ extrapolation = strategy ,
859859 correction = correction ,
860860 calibration = _calibration_most_recent (ssm = ssm ),
861861 name = "Dynamic probabilistic solver" ,
@@ -877,22 +877,22 @@ def extract(state, /):
877877 return _Calibration (init = init , update = update , extract = extract )
878878
879879
880- def solver (extrapolation , / , * , correction , prior , ssm ):
880+ def solver (strategy , * , correction , prior , ssm ):
881881 """Create a solver that does not calibrate the output scale automatically."""
882882
883883 def step (state : _State , * , vector_field , dt , calibration ):
884884 del calibration # unused
885885
886886 prior_discretized = prior .discretize (dt )
887- hidden , extra = extrapolation .begin (
887+ hidden , extra = strategy .begin (
888888 state .hidden , state .aux_extra , prior_discretized = prior_discretized
889889 )
890890 t = state .t + dt
891891 error , _ , corr = correction .estimate_error (
892892 hidden , vector_field = vector_field , t = t
893893 )
894894
895- hidden , extra = extrapolation .complete (
895+ hidden , extra = strategy .complete (
896896 hidden , extra , output_scale = state .output_scale
897897 )
898898 hidden , corr = correction .complete (hidden , corr )
@@ -906,7 +906,7 @@ def step(state: _State, *, vector_field, dt, calibration):
906906 return _ProbabilisticSolver (
907907 ssm = ssm ,
908908 prior = prior ,
909- extrapolation = extrapolation ,
909+ extrapolation = strategy ,
910910 correction = correction ,
911911 calibration = _calibration_none (),
912912 step_implementation = step ,
0 commit comments