@@ -513,10 +513,10 @@ class ProbabilisticSolution(Generic[C, T]):
513513 u : TaylorCoeffTarget [C , T ]
514514 """The current ODE solution estimate."""
515515
516- full_solution : T | MarkovSequence [T ]
516+ solution_full : T | MarkovSequence [T ]
517517 """The current posterior estimate."""
518518
519- # Todo: merge 'output_scale' and 'auxiliary'?
519+ # Todo: merge 'output_scale' and 'auxiliary' and "fun_evals" ?
520520 output_scale : Any
521521 """The current output scale."""
522522
@@ -634,7 +634,7 @@ def offgrid_marginals(self, t, *, solution):
634634 def _extract_previous (pytree ):
635635 return tree .tree_map (lambda s : s [index - 1 , ...], pytree )
636636
637- posterior_t0 = _extract_previous (solution .full_solution )
637+ posterior_t0 = _extract_previous (solution .solution_full )
638638 t0 = _extract_previous (solution .t )
639639
640640 # Extract the RHS
@@ -674,8 +674,8 @@ def interpolate(
674674
675675 # Interpolate
676676 tmp = self .strategy .interpolate (
677- posterior_t0 = interp_from .full_solution ,
678- posterior_t1 = interp_to .full_solution ,
677+ posterior_t0 = interp_from .solution_full ,
678+ posterior_t1 = interp_to .solution_full ,
679679 transition_t0_t = transition_t0_t ,
680680 transition_t_t1 = transition_t_t1 ,
681681 )
@@ -684,7 +684,7 @@ def interpolate(
684684 step_from = ProbabilisticSolution (
685685 t = interp_to .t ,
686686 # New:
687- full_solution = step_and_interpolate_from .step_from ,
687+ solution_full = step_and_interpolate_from .step_from ,
688688 # Old:
689689 u = interp_to .u ,
690690 output_scale = interp_to .output_scale ,
@@ -696,7 +696,7 @@ def interpolate(
696696 interpolated = ProbabilisticSolution (
697697 t = t ,
698698 # New:
699- full_solution = interpolated ,
699+ solution_full = interpolated ,
700700 u = estimate ,
701701 # Taken from the rhs point
702702 output_scale = interp_to .output_scale ,
@@ -708,7 +708,7 @@ def interpolate(
708708 interp_from = ProbabilisticSolution (
709709 t = t ,
710710 # New:
711- full_solution = step_and_interpolate_from .interp_from ,
711+ solution_full = step_and_interpolate_from .interp_from ,
712712 # Old:
713713 u = interp_from .u ,
714714 output_scale = interp_from .output_scale ,
@@ -725,13 +725,13 @@ def interpolate_at_t1(
725725 ):
726726 """Interpolate the solution near a checkpoint."""
727727 del t
728- tmp = self .strategy .interpolate_at_t1 (posterior_t1 = interp_to .full_solution )
728+ tmp = self .strategy .interpolate_at_t1 (posterior_t1 = interp_to .solution_full )
729729 (estimate , interpolated ), step_and_interpolate_from = tmp
730730
731731 prev = ProbabilisticSolution (
732732 t = interp_to .t ,
733733 # New
734- full_solution = step_and_interpolate_from .interp_from ,
734+ solution_full = step_and_interpolate_from .interp_from ,
735735 # Old
736736 u = interp_from .u , # incorrect?
737737 output_scale = interp_from .output_scale , # incorrect?
@@ -742,7 +742,7 @@ def interpolate_at_t1(
742742 sol = ProbabilisticSolution (
743743 t = interp_to .t ,
744744 # New:
745- full_solution = interpolated ,
745+ solution_full = interpolated ,
746746 u = estimate ,
747747 # Old:
748748 output_scale = interp_to .output_scale ,
@@ -753,7 +753,7 @@ def interpolate_at_t1(
753753 acc = ProbabilisticSolution (
754754 t = interp_to .t ,
755755 # New:
756- full_solution = step_and_interpolate_from .step_from ,
756+ solution_full = step_and_interpolate_from .step_from ,
757757 # Old
758758 u = interp_to .u ,
759759 output_scale = interp_to .output_scale ,
@@ -1339,7 +1339,7 @@ def init(self, t, u) -> ProbabilisticSolution:
13391339 return ProbabilisticSolution (
13401340 t = t ,
13411341 u = estimate ,
1342- full_solution = posterior ,
1342+ solution_full = posterior ,
13431343 auxiliary = auxiliary ,
13441344 output_scale = output_scale_prior ,
13451345 num_steps = 0 ,
@@ -1353,7 +1353,7 @@ def step(self, state, *, dt: float, damp: float):
13531353
13541354 # Predict
13551355 u , prediction = self .strategy .predict (
1356- posterior = state .full_solution , transition = transition
1356+ posterior = state .solution_full , transition = transition
13571357 )
13581358
13591359 # Linearize
@@ -1381,7 +1381,7 @@ def step(self, state, *, dt: float, damp: float):
13811381 return ProbabilisticSolution (
13821382 t = state .t + dt ,
13831383 u = u ,
1384- full_solution = posterior ,
1384+ solution_full = posterior ,
13851385 output_scale = state .output_scale ,
13861386 auxiliary = auxiliary ,
13871387 num_steps = state .num_steps + 1 ,
@@ -1398,8 +1398,8 @@ def userfriendly_output(
13981398 ones = np .ones_like (output_scale )
13991399 output_scale = output_scale [- 1 ]
14001400
1401- init = solution0 .full_solution
1402- posterior = solution .full_solution
1401+ init = solution0 .solution_full
1402+ posterior = solution .solution_full
14031403 estimate , posterior = self .strategy .finalize (
14041404 posterior0 = init , posterior = posterior , output_scale = output_scale
14051405 )
@@ -1409,7 +1409,7 @@ def userfriendly_output(
14091409 return ProbabilisticSolution (
14101410 t = ts ,
14111411 u = estimate ,
1412- full_solution = posterior ,
1412+ solution_full = posterior ,
14131413 output_scale = output_scale ,
14141414 num_steps = solution .num_steps ,
14151415 auxiliary = solution .auxiliary ,
@@ -1456,7 +1456,7 @@ def init(self, t, u) -> ProbabilisticSolution:
14561456 return ProbabilisticSolution (
14571457 t = t ,
14581458 u = estimate ,
1459- full_solution = posterior ,
1459+ solution_full = posterior ,
14601460 auxiliary = lin_state ,
14611461 output_scale = output_scale ,
14621462 num_steps = 0 ,
@@ -1484,7 +1484,7 @@ def step(self, state: ProbabilisticSolution, *, dt: float, damp: float):
14841484 # (Includes re-discretisation)
14851485 transition = self .prior (dt , output_scale )
14861486 u , prediction = self .strategy .predict (
1487- state .full_solution , transition = transition
1487+ state .solution_full , transition = transition
14881488 )
14891489
14901490 # Relinearize
@@ -1502,7 +1502,7 @@ def step(self, state: ProbabilisticSolution, *, dt: float, damp: float):
15021502 return ProbabilisticSolution (
15031503 t = state .t + dt ,
15041504 u = u ,
1505- full_solution = posterior ,
1505+ solution_full = posterior ,
15061506 num_steps = state .num_steps + 1 ,
15071507 auxiliary = lin_state ,
15081508 output_scale = output_scale ,
@@ -1517,8 +1517,8 @@ def userfriendly_output(
15171517 ones = np .ones_like (solution .output_scale )
15181518 output_scale = ones [- 1 , ...]
15191519
1520- init = solution0 .full_solution
1521- posterior = solution .full_solution
1520+ init = solution0 .solution_full
1521+ posterior = solution .solution_full
15221522 estimate , posterior = self .strategy .finalize (
15231523 posterior0 = init , posterior = posterior , output_scale = output_scale
15241524 )
@@ -1529,7 +1529,7 @@ def userfriendly_output(
15291529 return ProbabilisticSolution (
15301530 t = ts ,
15311531 u = estimate ,
1532- full_solution = posterior ,
1532+ solution_full = posterior ,
15331533 output_scale = output_scale ,
15341534 num_steps = solution .num_steps ,
15351535 auxiliary = solution .auxiliary ,
@@ -1567,7 +1567,7 @@ def init(self, t: Array, u: TaylorCoeffTarget) -> ProbabilisticSolution:
15671567 return ProbabilisticSolution (
15681568 t = t ,
15691569 u = u ,
1570- full_solution = posterior ,
1570+ solution_full = posterior ,
15711571 num_steps = 0 ,
15721572 auxiliary = correction_state ,
15731573 output_scale = output_scale ,
@@ -1581,7 +1581,7 @@ def step(self, state: ProbabilisticSolution, *, dt, damp):
15811581
15821582 # Predict
15831583 u , prediction = self .strategy .predict (
1584- state .full_solution , transition = transition
1584+ state .solution_full , transition = transition
15851585 )
15861586
15871587 # Linearize
@@ -1598,7 +1598,7 @@ def step(self, state: ProbabilisticSolution, *, dt, damp):
15981598 return ProbabilisticSolution (
15991599 t = state .t + dt ,
16001600 u = u ,
1601- full_solution = posterior ,
1601+ solution_full = posterior ,
16021602 output_scale = output_scale ,
16031603 auxiliary = auxiliary ,
16041604 num_steps = state .num_steps + 1 ,
@@ -1614,8 +1614,8 @@ def userfriendly_output(
16141614 ones = np .ones_like (solution .output_scale )
16151615 output_scale = np .ones_like (solution .output_scale [- 1 ])
16161616
1617- init = solution0 .full_solution
1618- posterior = solution .full_solution
1617+ init = solution0 .solution_full
1618+ posterior = solution .solution_full
16191619 u , posterior = self .strategy .finalize (
16201620 posterior0 = init , posterior = posterior , output_scale = output_scale
16211621 )
@@ -1626,7 +1626,7 @@ def userfriendly_output(
16261626 return ProbabilisticSolution (
16271627 t = ts ,
16281628 u = u ,
1629- full_solution = posterior ,
1629+ solution_full = posterior ,
16301630 output_scale = output_scale ,
16311631 num_steps = solution .num_steps ,
16321632 auxiliary = solution .auxiliary ,
0 commit comments