Skip to content

Commit c27f805

Browse files
clear saved outputs from all tutorials
1 parent 59dd0dd commit c27f805

7 files changed

Lines changed: 284 additions & 9695 deletions

File tree

doc/tutorials/02_extensive_form.ipynb

Lines changed: 21 additions & 930 deletions
Large diffs are not rendered by default.

doc/tutorials/03_stripped_down_poker.ipynb

Lines changed: 97 additions & 1696 deletions
Large diffs are not rendered by default.

doc/tutorials/advanced_tutorials/agent_versus_non_agent_regret.ipynb

Lines changed: 26 additions & 373 deletions
Large diffs are not rendered by default.

doc/tutorials/advanced_tutorials/quantal_response.ipynb

Lines changed: 20 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
{
1515
"cell_type": "code",
16-
"execution_count": 1,
16+
"execution_count": null,
1717
"id": "ebc4c60e",
1818
"metadata": {},
1919
"outputs": [],
@@ -23,24 +23,10 @@
2323
},
2424
{
2525
"cell_type": "code",
26-
"execution_count": 2,
26+
"execution_count": null,
2727
"id": "202786ef",
2828
"metadata": {},
29-
"outputs": [
30-
{
31-
"data": {
32-
"text/latex": [
33-
"$\\left[[0.5000000234106035, 0.49999997658939654],[0.19998563837426647, 0.8000143616257336]\\right]$"
34-
],
35-
"text/plain": [
36-
"[[0.5000000234106035, 0.49999997658939654], [0.19998563837426647, 0.8000143616257336]]"
37-
]
38-
},
39-
"execution_count": 2,
40-
"metadata": {},
41-
"output_type": "execute_result"
42-
}
43-
],
29+
"outputs": [],
4430
"source": [
4531
"g = gbt.Game.from_arrays(\n",
4632
" [[1.1141, 0], [0, 0.2785]],\n",
@@ -64,70 +50,31 @@
6450
},
6551
{
6652
"cell_type": "code",
67-
"execution_count": 3,
53+
"execution_count": null,
6854
"id": "840d9203",
6955
"metadata": {},
70-
"outputs": [
71-
{
72-
"data": {
73-
"text/plain": [
74-
"193"
75-
]
76-
},
77-
"execution_count": 3,
78-
"metadata": {},
79-
"output_type": "execute_result"
80-
}
81-
],
56+
"outputs": [],
8257
"source": [
8358
"qres = gbt.qre.logit_solve_branch(g)\n",
8459
"len(qres)"
8560
]
8661
},
8762
{
8863
"cell_type": "code",
89-
"execution_count": 4,
64+
"execution_count": null,
9065
"id": "be419db2",
9166
"metadata": {},
92-
"outputs": [
93-
{
94-
"data": {
95-
"text/latex": [
96-
"$\\left[[0.5, 0.5],[0.5, 0.5]\\right]$"
97-
],
98-
"text/plain": [
99-
"[[0.5, 0.5], [0.5, 0.5]]"
100-
]
101-
},
102-
"execution_count": 4,
103-
"metadata": {},
104-
"output_type": "execute_result"
105-
}
106-
],
67+
"outputs": [],
10768
"source": [
10869
"qres[0].profile"
10970
]
11071
},
11172
{
11273
"cell_type": "code",
113-
"execution_count": 5,
74+
"execution_count": null,
11475
"id": "582838de",
11576
"metadata": {},
116-
"outputs": [
117-
{
118-
"data": {
119-
"text/latex": [
120-
"$\\left[[0.5182276540742868, 0.4817723459257562],[0.49821668880066783, 0.5017833111993909]\\right]$"
121-
],
122-
"text/plain": [
123-
"[[0.5182276540742868, 0.4817723459257562], [0.49821668880066783, 0.5017833111993909]]"
124-
]
125-
},
126-
"execution_count": 5,
127-
"metadata": {},
128-
"output_type": "execute_result"
129-
}
130-
],
77+
"outputs": [],
13178
"source": [
13279
"qres[5].profile"
13380
]
@@ -149,73 +96,31 @@
14996
},
15097
{
15198
"cell_type": "code",
152-
"execution_count": 6,
99+
"execution_count": null,
153100
"id": "ce354b49",
154101
"metadata": {},
155-
"outputs": [
156-
{
157-
"data": {
158-
"text/latex": [
159-
"$\\left[[0.5867840364385154, 0.4132159635614846],[0.4518070316997103, 0.5481929683002897]\\right]$"
160-
],
161-
"text/plain": [
162-
"[[0.5867840364385154, 0.4132159635614846], [0.4518070316997103, 0.5481929683002897]]"
163-
]
164-
},
165-
"execution_count": 6,
166-
"metadata": {},
167-
"output_type": "execute_result"
168-
}
169-
],
102+
"outputs": [],
170103
"source": [
171104
"qres = gbt.qre.logit_solve_lambda(g, lam=[1, 2, 3])\n",
172105
"qres[0].profile"
173106
]
174107
},
175108
{
176109
"cell_type": "code",
177-
"execution_count": 7,
110+
"execution_count": null,
178111
"id": "280fa428",
179112
"metadata": {},
180-
"outputs": [
181-
{
182-
"data": {
183-
"text/latex": [
184-
"$\\left[[0.6175219458400859, 0.3824780541599141],[0.3719816648492249, 0.6280183351507751]\\right]$"
185-
],
186-
"text/plain": [
187-
"[[0.6175219458400859, 0.3824780541599141], [0.3719816648492249, 0.6280183351507751]]"
188-
]
189-
},
190-
"execution_count": 7,
191-
"metadata": {},
192-
"output_type": "execute_result"
193-
}
194-
],
113+
"outputs": [],
195114
"source": [
196115
"qres[1].profile"
197116
]
198117
},
199118
{
200119
"cell_type": "code",
201-
"execution_count": 8,
120+
"execution_count": null,
202121
"id": "3dee57df",
203122
"metadata": {},
204-
"outputs": [
205-
{
206-
"data": {
207-
"text/latex": [
208-
"$\\left[[0.6168968501329284, 0.3831031498670716],[0.31401636202001226, 0.6859836379799877]\\right]$"
209-
],
210-
"text/plain": [
211-
"[[0.6168968501329284, 0.3831031498670716], [0.31401636202001226, 0.6859836379799877]]"
212-
]
213-
},
214-
"execution_count": 8,
215-
"metadata": {},
216-
"output_type": "execute_result"
217-
}
218-
],
123+
"outputs": [],
219124
"source": [
220125
"qres[2].profile"
221126
]
@@ -232,21 +137,10 @@
232137
},
233138
{
234139
"cell_type": "code",
235-
"execution_count": 9,
140+
"execution_count": null,
236141
"id": "b34a9278",
237142
"metadata": {},
238-
"outputs": [
239-
{
240-
"data": {
241-
"text/plain": [
242-
"pygambit.qre.LogitQREMixedStrategyFitResult"
243-
]
244-
},
245-
"execution_count": 9,
246-
"metadata": {},
247-
"output_type": "execute_result"
248-
}
249-
],
143+
"outputs": [],
250144
"source": [
251145
"data = g.mixed_strategy_profile([[128*0.527, 128*(1-0.527)], [128*0.366, 128*(1-0.366)]])\n",
252146
"fit = gbt.qre.logit_estimate(data)\n",
@@ -267,20 +161,10 @@
267161
},
268162
{
269163
"cell_type": "code",
270-
"execution_count": 10,
164+
"execution_count": null,
271165
"id": "e10e9abd",
272166
"metadata": {},
273-
"outputs": [
274-
{
275-
"name": "stdout",
276-
"output_type": "stream",
277-
"text": [
278-
"1.8456097536855862\n",
279-
"[[0.615651314427859, 0.3843486855721409], [0.38329094004562914, 0.6167090599543709]]\n",
280-
"-174.76453191087447\n"
281-
]
282-
}
283-
],
167+
"outputs": [],
284168
"source": [
285169
"print(fit.lam)\n",
286170
"print(fit.profile)\n",
@@ -314,7 +198,7 @@
314198
],
315199
"metadata": {
316200
"kernelspec": {
317-
"display_name": "gambitvenv313",
201+
"display_name": "Python 3 (ipykernel)",
318202
"language": "python",
319203
"name": "python3"
320204
},

0 commit comments

Comments
 (0)