Skip to content

Commit

Permalink
Merge branch 'mkstd_models' into mkstd_model_space
Browse files Browse the repository at this point in the history
  • Loading branch information
dilpath authored Jan 6, 2025
2 parents e0278bd + 5c77361 commit 4899827
Showing 11 changed files with 113 additions and 848 deletions.
2 changes: 1 addition & 1 deletion doc/analysis.rst
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ Analysis
After using PEtab Select to perform model selection, you may want to operate on all "good" calibrated models.
The PEtab Select Python library provides some methods to help with this. Please request any missing methods.

See the Python API docs for the ``Models`` class, which provides some methods. In particular, ``Models.df`` can be used
See the Python API docs for the :class:`petab_select.Models` class, which provides some methods. In particular, :attr:`petab_select.Models.df` can be used
to get a quick overview over all models, as a pandas dataframe.

Additionally, see the Python API docs for the ``petab_select.analysis`` module, which contains some methods to subset and group models,
1 change: 1 addition & 0 deletions doc/api.rst
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@ petab-select Python API
:toctree: generated

petab_select
petab_select.analyze
petab_select.candidate_space
petab_select.constants
petab_select.criteria
71 changes: 6 additions & 65 deletions doc/examples/example_cli_famos.ipynb
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "1f04dce0",
"metadata": {},
"outputs": [],
@@ -44,7 +44,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "a81560e6",
"metadata": {},
"outputs": [],
@@ -109,69 +109,10 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "bb1a5144",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Executing iteration 1\n",
"Executing iteration 2\n",
"Executing iteration 3\n",
"Executing iteration 4\n",
"Executing iteration 5\n",
"Executing iteration 6\n",
"Executing iteration 7\n",
"Executing iteration 8\n",
"Executing iteration 9\n",
"Executing iteration 10\n",
"Executing iteration 11\n",
"Executing iteration 12\n",
"Executing iteration 13\n",
"Executing iteration 14\n",
"Executing iteration 15\n",
"Executing iteration 16\n",
"Executing iteration 17\n",
"Executing iteration 18\n",
"Executing iteration 19\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"petab_select/petab_select/candidate_space.py:1160: RuntimeWarning: Model `model_subspace_1-0001011010010010` has been previously excluded from the candidate space so is skipped here.\n",
" return_value = self.inner_candidate_space.consider(model)\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Executing iteration 20\n",
"Executing iteration 21\n",
"Executing iteration 22\n",
"Executing iteration 23\n",
"Executing iteration 24\n",
"Executing iteration 25\n",
"Executing iteration 26\n",
"Executing iteration 27\n",
"Executing iteration 28\n",
"Executing iteration 29\n",
"Executing iteration 30\n",
"Executing iteration 31\n",
"Executing iteration 32\n",
"Executing iteration 33\n",
"Executing iteration 34\n",
"Executing iteration 35\n",
"Executing iteration 36\n",
"Executing iteration 37\n",
"Model selection has terminated.\n"
]
}
],
"outputs": [],
"source": [
"%%bash -s \"$petab_select_problem_yaml\" \"$output_path_str\"\n",
"petab_select_problem_yaml=$1\n",
@@ -217,7 +158,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "93caf071",
"metadata": {},
"outputs": [],
@@ -227,7 +168,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "cb61d0f7",
"metadata": {},
"outputs": [],
243 changes: 16 additions & 227 deletions doc/examples/visualization.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 4899827

Please sign in to comment.