feat: Chain fit methods using result#284
Open
Siel wants to merge 3 commits into
Open
Conversation
Contributor
|
| Branch | feature/chain_bootstrap_iov |
| Testbed | mhovd-pgx |
Click to view all benchmark results
| Benchmark | Latency | Benchmark Result milliseconds (ms) (Result Δ%) | Upper Boundary milliseconds (ms) (Limit %) |
|---|---|---|---|
| bimodal_ke_npag | 📈 view plot 🚷 view threshold | 4,963.80 ms(+1.74%)Baseline: 4,879.07 ms | 5,360.95 ms (92.59%) |
| bimodal_ke_npod | 📈 view plot 🚷 view threshold | 1,468.40 ms(+7.95%)Baseline: 1,360.23 ms | 1,614.47 ms (90.95%) |
| bimodal_ke_postprob | 📈 view plot 🚷 view threshold | 514.98 ms(+90.63%)Baseline: 270.15 ms | 753.68 ms (68.33%) |
mhovd
requested changes
Jun 25, 2026
mhovd
left a comment
Collaborator
There was a problem hiding this comment.
Overall great additions, just not sure about the bootstrapping.
Maybe we can extract it and discuss it more? Or implement directly in Pmetrics if needed.
You can also decide on the placement of the IOV module.
| /// [`Theta::latin`], and [`Theta::from_file`]. | ||
| /// | ||
| /// See the [module-level documentation](self) for details. | ||
| pub fn bootstrap_theta<ESource: Equation, ETarget: Equation + EquationMetadataSource>( |
Collaborator
There was a problem hiding this comment.
I am not sure about this functionality. Preferrably this should be in a different PR to be discussed.
| // Chain: NPAG runs first, then NPOD continues from its result | ||
| let result = EstimationProblem::nonparametric(eq, data, prior, error_models)? | ||
| .fit_with(NpagConfig::new().max_cycles(10))? | ||
| .chain(NpodConfig::new().max_cycles(5))?; |
| @@ -0,0 +1,243 @@ | |||
| //! SDE-based Inter-Occasion Variability (IOV) analysis. | |||
Collaborator
There was a problem hiding this comment.
This module should probably be a child of the nonparametric module, due to its dependency on ´Theta`.
Alternatively, written as a trait or as a generic over the framework (P vs NP).
| /// | ||
| /// Free-function form of [`DiffusionOptimize::optimize_diffusion`]. | ||
| /// Prefer `sde.optimize_diffusion(...)` for readability. | ||
| pub fn optimize_diffusion( |
Collaborator
There was a problem hiding this comment.
This should be a method on SDE only
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.