-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create standard/schema for
Problem
(#132)
* update docs * test problem load/save round-trip * remove unused constant, update doc example * add `ModelSubspace.to_definition` * `ProblemStandard` * handle predecessor model relative path on load * add more repro info to test case 0009 * fix cli `start_iteration` * bump mkstd req * change pypesto test tolerance; add test for pypesto+cli --------- Co-authored-by: Daniel Weindl <[email protected]>
- Loading branch information
Showing
34 changed files
with
522 additions
and
407 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version: beta_1 | ||
format_version: 1.0.0 | ||
criterion: AIC | ||
method: forward | ||
model_space_files: | ||
- model_space.tsv | ||
candidate_space_arguments: {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
from petab_select.model import ModelStandard | ||
from petab_select.models import ModelsStandard | ||
from petab_select.problem import ProblemStandard | ||
|
||
ModelStandard.save_schema("model.yaml") | ||
ModelsStandard.save_schema("models.yaml") | ||
ProblemStandard.save_schema("problem.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,35 @@ | ||
description: "Handle everything related to the model selection problem.\n\nAttributes:\n\ | ||
\ model_space:\n The model space.\n calibrated_models:\n Calibrated\ | ||
\ models. Will be used to augment the model selection\n problem (e.g. by\ | ||
\ excluding them from the model space).\n candidate_space_arguments:\n \ | ||
\ Arguments are forwarded to the candidate space constructor.\n compare:\n \ | ||
\ A method that compares models by selection criterion. See\n :func:`petab_select.model.default_compare`\ | ||
\ for an example.\n criterion:\n The criterion used to compare models.\n\ | ||
\ method:\n The method used to search the model space.\n version:\n\ | ||
\ The version of the PEtab Select format.\n yaml_path:\n The location\ | ||
\ of the selection problem YAML file. Used for relative\n paths that exist\ | ||
\ in e.g. the model space files." | ||
properties: | ||
format_version: | ||
default: 1.0.0 | ||
title: Format Version | ||
type: string | ||
criterion: | ||
type: string | ||
method: | ||
type: string | ||
model_space_files: | ||
items: | ||
format: path | ||
type: string | ||
title: Model Space Files | ||
type: array | ||
candidate_space_arguments: | ||
title: Candidate Space Arguments | ||
type: object | ||
required: | ||
- criterion | ||
- method | ||
- model_space_files | ||
title: Problem | ||
type: object |
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
Oops, something went wrong.