Skip to content

Commit cd2d917

Browse files
committed
removed use_strategic from call to logit_solve in 03_stripped_down_poker.ipynb
1 parent 698907b commit cd2d917

1 file changed

Lines changed: 31 additions & 31 deletions

File tree

doc/tutorials/03_stripped_down_poker.ipynb

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,14 +2170,14 @@
21702170
"metadata": {},
21712171
"source": [
21722172
"`logit_solve` is a globally-convergent method, in that it computes a sequence of profiles which is guaranteed to have a subsequence that converges to a\n",
2173-
"Nash equilibrium.\n",
2173+
"Nash equilibrium. \n",
21742174
"\n",
2175-
"The default value of `maxregret` for this method is set at $10^{-8}$:"
2175+
"The default value of `maxregret` for this method is set at `1e-8`:"
21762176
]
21772177
},
21782178
{
21792179
"cell_type": "code",
2180-
"execution_count": 54,
2180+
"execution_count": 53,
21812181
"id": "101598c6",
21822182
"metadata": {},
21832183
"outputs": [
@@ -2187,29 +2187,29 @@
21872187
"1"
21882188
]
21892189
},
2190-
"execution_count": 54,
2190+
"execution_count": 53,
21912191
"metadata": {},
21922192
"output_type": "execute_result"
21932193
}
21942194
],
21952195
"source": [
2196-
"logit_solve_result = gbt.nash.logit_solve(g, use_strategic=True, maxregret=1e-8)\n",
2196+
"logit_solve_result = gbt.nash.logit_solve(g, maxregret=1e-8)\n",
21972197
"len(logit_solve_result.equilibria)"
21982198
]
21992199
},
22002200
{
22012201
"cell_type": "code",
2202-
"execution_count": 59,
2202+
"execution_count": 54,
22032203
"id": "9b142728",
22042204
"metadata": {},
22052205
"outputs": [
22062206
{
22072207
"data": {
22082208
"text/plain": [
2209-
"7.997619122512845e-08"
2209+
"5.0647885885268806e-08"
22102210
]
22112211
},
2212-
"execution_count": 59,
2212+
"execution_count": 54,
22132213
"metadata": {},
22142214
"output_type": "execute_result"
22152215
}
@@ -2230,17 +2230,17 @@
22302230
},
22312231
{
22322232
"cell_type": "code",
2233-
"execution_count": 60,
2233+
"execution_count": 55,
22342234
"id": "ff405409",
22352235
"metadata": {},
22362236
"outputs": [
22372237
{
22382238
"data": {
22392239
"text/plain": [
2240-
"9.997023903141056e-09"
2240+
"6.330985735658601e-09"
22412241
]
22422242
},
2243-
"execution_count": 60,
2243+
"execution_count": 55,
22442244
"metadata": {},
22452245
"output_type": "execute_result"
22462246
}
@@ -2261,24 +2261,24 @@
22612261
},
22622262
{
22632263
"cell_type": "code",
2264-
"execution_count": 62,
2264+
"execution_count": 57,
22652265
"id": "31b0143c",
22662266
"metadata": {},
22672267
"outputs": [
22682268
{
22692269
"data": {
22702270
"text/plain": [
2271-
"9.434077820902331e-05"
2271+
"6.566536354296604e-05"
22722272
]
22732273
},
2274-
"execution_count": 62,
2274+
"execution_count": 57,
22752275
"metadata": {},
22762276
"output_type": "execute_result"
22772277
}
22782278
],
22792279
"source": [
22802280
"(\n",
2281-
" gbt.nash.logit_solve(g, use_strategic=True, maxregret=1e-4).equilibria[0]\n",
2281+
" gbt.nash.logit_solve(g, maxregret=1e-4).equilibria[0]\n",
22822282
" .max_regret() / (g.max_payoff - g.min_payoff)\n",
22832283
")"
22842284
]
@@ -2293,62 +2293,62 @@
22932293
},
22942294
{
22952295
"cell_type": "code",
2296-
"execution_count": 63,
2296+
"execution_count": 58,
22972297
"id": "7cfba34a",
22982298
"metadata": {},
22992299
"outputs": [
23002300
{
23012301
"name": "stdout",
23022302
"output_type": "stream",
23032303
"text": [
2304-
"CPU times: user 180 ms, sys: 2.62 ms, total: 183 ms\n",
2305-
"Wall time: 183 ms\n"
2304+
"CPU times: user 15.8 ms, sys: 429 μs, total: 16.3 ms\n",
2305+
"Wall time: 16.3 ms\n"
23062306
]
23072307
},
23082308
{
23092309
"data": {
23102310
"text/plain": [
2311-
"NashComputationResult(method='logit', rational=False, use_strategic=True, equilibria=[[[0.3340897594396454, 0.6659102406666876, 0.0, 0.0], [0.667415735361018, 0.3325842647395834]]], parameters={'first_step': 0.03, 'max_accel': 1.1})"
2311+
"NashComputationResult(method='logit', rational=False, use_strategic=False, equilibria=[[[[1.0, 0.0], [0.333859274697877, 0.6661407253531737]], [[0.6670586236711866, 0.3329413763565089]]]], parameters={'first_step': 0.03, 'max_accel': 1.1})"
23122312
]
23132313
},
2314-
"execution_count": 63,
2314+
"execution_count": 58,
23152315
"metadata": {},
23162316
"output_type": "execute_result"
23172317
}
23182318
],
23192319
"source": [
23202320
"%%time\n",
2321-
"gbt.nash.logit_solve(g, use_strategic=True, maxregret=1e-4)"
2321+
"gbt.nash.logit_solve(g, maxregret=1e-4)"
23222322
]
23232323
},
23242324
{
23252325
"cell_type": "code",
2326-
"execution_count": 64,
2326+
"execution_count": 59,
23272327
"id": "6f1809a7",
23282328
"metadata": {},
23292329
"outputs": [
23302330
{
23312331
"name": "stdout",
23322332
"output_type": "stream",
23332333
"text": [
2334-
"CPU times: user 306 ms, sys: 3.42 ms, total: 310 ms\n",
2335-
"Wall time: 309 ms\n"
2334+
"CPU times: user 28.7 ms, sys: 883 μs, total: 29.6 ms\n",
2335+
"Wall time: 29.7 ms\n"
23362336
]
23372337
},
23382338
{
23392339
"data": {
23402340
"text/plain": [
2341-
"NashComputationResult(method='logit', rational=False, use_strategic=True, equilibria=[[[0.33333341330954375, 0.6666665866904562, 0.0, 0.0], [0.6666667466427941, 0.3333332533572059]]], parameters={'first_step': 0.03, 'max_accel': 1.1})"
2341+
"NashComputationResult(method='logit', rational=False, use_strategic=False, equilibria=[[[[1.0, 0.0], [0.3333333839812253, 0.6666666160187746]], [[0.6666667046525624, 0.33333329534743755]]]], parameters={'first_step': 0.03, 'max_accel': 1.1})"
23422342
]
23432343
},
2344-
"execution_count": 64,
2344+
"execution_count": 59,
23452345
"metadata": {},
23462346
"output_type": "execute_result"
23472347
}
23482348
],
23492349
"source": [
23502350
"%%time\n",
2351-
"gbt.nash.logit_solve(g, use_strategic=True, maxregret=1e-8)"
2351+
"gbt.nash.logit_solve(g, maxregret=1e-8)"
23522352
]
23532353
},
23542354
{
@@ -2363,7 +2363,7 @@
23632363
},
23642364
{
23652365
"cell_type": "code",
2366-
"execution_count": 80,
2366+
"execution_count": 60,
23672367
"id": "5998d609-8037-4814-ac78-1f5a288f4bdd",
23682368
"metadata": {},
23692369
"outputs": [
@@ -2373,7 +2373,7 @@
23732373
"0.03211100728219732"
23742374
]
23752375
},
2376-
"execution_count": 80,
2376+
"execution_count": 60,
23772377
"metadata": {},
23782378
"output_type": "execute_result"
23792379
}
@@ -2395,7 +2395,7 @@
23952395
},
23962396
{
23972397
"cell_type": "code",
2398-
"execution_count": 83,
2398+
"execution_count": 61,
23992399
"id": "a892dc2b",
24002400
"metadata": {},
24012401
"outputs": [
@@ -2405,7 +2405,7 @@
24052405
"0.03211100728219732"
24062406
]
24072407
},
2408-
"execution_count": 83,
2408+
"execution_count": 61,
24092409
"metadata": {},
24102410
"output_type": "execute_result"
24112411
}

0 commit comments

Comments
 (0)