-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hierarchical: restructuring and add relative to InnerCalculatorCollec…
…tor (#1245) * Hier. par. plotting for fides * hierarchical 'hess' bug * Fix storing of inner parameters in result Inner parameters were not being stored when the result was stored. This was due to a problem with putting a dictionary into an HDF5 format. I've transformed it into 2 lists now: a INNER_PARAMETERS_VALUES and INNER_PARAMETER_NAMES list. * adjusted documentation of hierarichal opt. * Fix some type issues * Small fix * Save only values, not names * Extend to all optimizers * Remove redundant * Small update * Update parameters.py * Small typo * Fix some bugs, use lists for saving instead * Fix tests * Update hierarchical parameter plot test * Largescale renaming and restructuring - Restructuring of the hierarchical scaling+offset method. The base classes used by all non-quantitative and semi-quantitative data types are put in the `base_...` files. All classes related to the scaling+offset method (for relative data) is moved to the `relative` folder, analogous to other data types. - Renaming: the naming scheme doesn't follow the method, but the data type now. It's more direct and removes the ambiguity of `OptimalScaling` for ordinal data and `scaling_offset` for relative data. - Optimal scaling -> ordinal - Spline approximation -> semiquantitative - Scaling + offset -> relative * Update base_problem.py * Fix Docstrings * Daniel&Dilan review changes * Small change * More Dilan Review changes * Fix testing * Fix base test * Rename notebooks (again) * Move inner pars to decorator * Collect decorators for minimize * Maren review changes * Rename & fix notebooks * Include notebook changes * FIx tests * Add output * Include relative into Collector Included the relative calculator into the Inner calculator collector. Now relative data can be used together with any other non-quantitative data type. A lot of TODOs to still clean up. But it works nicely on all examples, except one which I think is a bad one (Boehm_mixed_test with nonlinearities: 1 spline 1 relative 1 known: very bad convergence... fits look okayish...) * Small documentation update * Documentation update * Update the notebooks * Update spline_approximation.py * Change data_types from list to set * Use add_sim_grad_to_opt_grad * Rename to semiquantitative in example * mode RES with only RELATIVE data * Add petab data type validation * DO TODOs * Small TODO * FIx api.rst module name changes * Update CODEOWNERS module name changes * Fix underline too short & api.rst * Fix plotting routines * Inline literal error * Testing error * Testing error 2 * Test literal error * Fix missing indentation * Fix inline * Daniel, Fabian & Stephan review changes * Notebook changes * Dilan & Daniel review changes * Change title of relative_data.ipynb * Remove observableParameter from solvers * Notebook changes from #1246 * Fabian review change --------- Co-authored-by: Lea@Mac <[email protected]>
- Loading branch information
Showing
56 changed files
with
3,051 additions
and
1,624 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
11 changes: 0 additions & 11 deletions
11
doc/example/example_nonlinear_monotone/example_nonlinear_monotone.yaml
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
doc/example/example_nonlinear_monotone/example_nonlinear_monotone_linear.yaml
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
doc/example/example_nonlinear_monotone/measurementData_example_nonlinear_monotone.tsv
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
doc/example/example_nonlinear_monotone/measurementData_example_nonlinear_monotone_linear.tsv
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
doc/example/example_semiquantitative/example_semiquantitative.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
format_version: 1 | ||
parameter_file: parameters_example_semiquantitative.tsv | ||
problems: | ||
- condition_files: | ||
- experimentalCondition_example_semiquantitative.tsv | ||
measurement_files: | ||
- measurementData_example_semiquantitative.tsv | ||
observable_files: | ||
- observables_example_semiquantitative.tsv | ||
sbml_files: | ||
- model_example_semiquantitative.xml |
11 changes: 11 additions & 0 deletions
11
doc/example/example_semiquantitative/example_semiquantitative_linear.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
format_version: 1 | ||
parameter_file: parameters_example_semiquantitative.tsv | ||
problems: | ||
- condition_files: | ||
- experimentalCondition_example_semiquantitative.tsv | ||
measurement_files: | ||
- measurementData_example_semiquantitative_linear.tsv | ||
observable_files: | ||
- observables_example_semiquantitative.tsv | ||
sbml_files: | ||
- model_example_semiquantitative.xml |
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
doc/example/example_semiquantitative/measurementData_example_semiquantitative.tsv
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
observableId preequilibrationConditionId simulationConditionId measurement time observableParameters noiseParameters observableTransformation noiseDistribution measurementType | ||
Activity Inhibitor_0 7.68240348241022 5 1 lin normal semiquantitative | ||
Activity Inhibitor_3 7.87610717856578 5 1 lin normal semiquantitative | ||
Activity Inhibitor_10 8.31458694362777 5 1 lin normal semiquantitative | ||
Activity Inhibitor_25 9.13091469917684 5 1 lin normal semiquantitative | ||
Activity Inhibitor_35 8.07849405536742 5 1 lin normal semiquantitative | ||
Activity Inhibitor_50 5.45211611461129 5 1 lin normal semiquantitative | ||
Activity Inhibitor_75 2.69874576106127 5 1 lin normal semiquantitative | ||
Activity Inhibitor_100 1.673154390125 5 1 lin normal semiquantitative | ||
Activity Inhibitor_300 0.392886259997627 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_0 0 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_3 0.744411111757651 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_10 2.31052444293466 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_25 4.23805611211676 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_35 4.6428594963941 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_50 4.83287946040586 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_75 4.89868421035517 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_100 4.91379066100035 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_300 4.92900825318423 5 1 lin normal semiquantitative |
19 changes: 19 additions & 0 deletions
19
doc/example/example_semiquantitative/measurementData_example_semiquantitative_linear.tsv
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
observableId preequilibrationConditionId simulationConditionId measurement time observableParameters noiseParameters observableTransformation noiseDistribution measurementType | ||
Activity Inhibitor_0 15.24029495 5 1 lin normal semiquantitative | ||
Activity Inhibitor_3 15.97660789 5 1 lin normal semiquantitative | ||
Activity Inhibitor_10 17.89265379 5 1 lin normal semiquantitative | ||
Activity Inhibitor_25 23.18714697 5 1 lin normal semiquantitative | ||
Activity Inhibitor_35 16.81210375 5 1 lin normal semiquantitative | ||
Activity Inhibitor_50 9.17312936 5 1 lin normal semiquantitative | ||
Activity Inhibitor_75 4.15092812 5 1 lin normal semiquantitative | ||
Activity Inhibitor_100 2.53355252 5 1 lin normal semiquantitative | ||
Activity Inhibitor_300 0.5896329 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_0 0 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_3 0.05999885 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_10 0.19999376 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_25 0.49904277 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_35 0.65916874 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_50 0.81495435 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_75 0.91638297 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_100 0.94898071 5 1 lin normal semiquantitative | ||
Ybar Inhibitor_300 0.98813045 5 1 lin normal semiquantitative |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.