Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed documentation notebook #191

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 9 additions & 42 deletions docs/getting_started/09_pgc_model_builder.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -112,27 +112,10 @@
"id": "7a920d7d-1430-43b5-b56e-3e74a7749ffe",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"ModelType.MDP with name None\n",
"\n",
"States:\n",
"State 0 with labels ['init', '1'] and features {}\n",
"State 1 with labels ['2'] and features {}\n",
"State 2 with labels ['0'] and features {}\n",
"\n",
"Transitions:\n",
"Action with labels frozenset({'left'}) => 0.5 -> State 1 with labels ['2'] and features {}, 0.5 -> State 0 with labels ['init', '1'] and features {}; Action with labels frozenset({'right'}) => 0.5 -> State 2 with labels ['0'] and features {}, 0.5 -> State 0 with labels ['init', '1'] and features {}\n",
"Action with labels frozenset({'right'}) => 0.5 -> State 0 with labels ['init', '1'] and features {}, 0.5 -> State 1 with labels ['2'] and features {}\n",
"Action with labels frozenset({'left'}) => 0.5 -> State 0 with labels ['init', '1'] and features {}, 0.5 -> State 2 with labels ['0'] and features {}\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "4c5a80e12c654efd9784b52c180b9bfa",
"model_id": "a97f08c6d821496bb5d0bfae8da5f7a9",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -168,7 +151,7 @@
{
"data": {
"application/javascript": [
"return_id_result('http://127.0.0.1:8891', 'LZZNNjFsnMeRoIfkYJKr', 'test message')"
"return_id_result('http://127.0.0.1:8891', 'xODqVARguTCBNYBlbjXU', 'test message')"
],
"text/plain": [
"<IPython.core.display.Javascript object>"
Expand All @@ -180,7 +163,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "2c6f8f3766e3432e86ebeb249be9f81d",
"model_id": "65c6373335314c86bb5cb3c344ad4f8f",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -194,7 +177,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "64ad3a34b5b64f199992d505bfdc734d",
"model_id": "511111935a8d435e9277ad4a8abc60fd",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -208,7 +191,7 @@
{
"data": {
"text/plain": [
"<stormvogel.visualization.Visualization at 0x7fc91fb3b470>"
"<stormvogel.visualization.Visualization at 0x7fd015746ed0>"
]
},
"execution_count": 4,
Expand Down Expand Up @@ -245,7 +228,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "1831d7ef13654dd0b8559c8e84948a8e",
"model_id": "fcdc9e1461754196b07b9ebe215dd930",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -259,7 +242,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c914ecf4b30f4b13b2eccc7f6562fb74",
"model_id": "5bdd509b98234daf8efdd8e8e957c50a",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -273,7 +256,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "38120498ac874b698016fe805c78fa75",
"model_id": "5b7b1805ea5a4b36925bd2af1ae195f7",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -287,7 +270,7 @@
{
"data": {
"text/plain": [
"<stormvogel.visualization.Visualization at 0x7fc91fb7a1e0>"
"<stormvogel.visualization.Visualization at 0x7fd015787c20>"
]
},
"execution_count": 5,
Expand All @@ -308,22 +291,6 @@
"pgc_model = pgc.build_pgc(delta, initial_state_pgc=0, rewards=rewards, modeltype=model.ModelType.DTMC)\n",
"show(pgc_model)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "d45f2907-f51b-4177-9900-d330c495eace",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "14e107b0-b890-49ca-ad52-a4289d1776b7",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down