Skip to content

Commit 2c0a9a9

Browse files
committed
simplified displaying of values in examples
1 parent b195603 commit 2c0a9a9

4 files changed

+14
-11
lines changed

examples/dice_rolls_ab_testing.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"InteractiveShell.ast_node_interactivity = \"all\"\n",
1414
"\n",
1515
"import numpy as np\n",
16+
"np.set_printoptions(legacy=\"1.25\")\n",
1617
"import pandas as pd\n",
1718
"from bayesian_testing.experiments import DiscreteDataTest"
1819
]
@@ -262,7 +263,7 @@
262263
"name": "python",
263264
"nbconvert_exporter": "python",
264265
"pygments_lexer": "ipython3",
265-
"version": "3.8.17"
266+
"version": "3.10.12"
266267
}
267268
},
268269
"nbformat": 4,

examples/goals_scored_ab_testing.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
{
2929
"data": {
3030
"text/plain": [
31-
"Generator(PCG64) at 0x1310379E0"
31+
"Generator(PCG64) at 0x111F9C660"
3232
]
3333
},
3434
"execution_count": 2,
@@ -101,11 +101,11 @@
101101
"+-----------+----------+--------------+--------------------+------------------+------------------------+-------------------+-----------------+\n",
102102
"| variant | totals | sum_values | observed_average | posterior_mean | credible_interval | prob_being_best | expected_loss |\n",
103103
"+===========+==========+==============+====================+==================+========================+===================+=================+\n",
104-
"| psg | 15 | 43 | 2.86667 | 2.8543 | [2.0584772, 3.7737209] | 0.25055 | 0.505673 |\n",
104+
"| psg | 15 | 43 | 2.86667 | 2.8543 | [2.0701365, 3.7817813] | 0.24485 | 0.512094 |\n",
105105
"+-----------+----------+--------------+--------------------+------------------+------------------------+-------------------+-----------------+\n",
106-
"| city | 14 | 40 | 2.85714 | 2.5 | [1.9055285, 3.1672732] | 0.0448 | 0.862359 |\n",
106+
"| city | 14 | 40 | 2.85714 | 2.5 | [1.9035733, 3.1737824] | 0.04655 | 0.870001 |\n",
107107
"+-----------+----------+--------------+--------------------+------------------+------------------------+-------------------+-----------------+\n",
108-
"| bayern | 15 | 49 | 3.26667 | 3.25166 | [2.4096052, 4.1974157] | 0.70465 | 0.112236 |\n",
108+
"| bayern | 15 | 49 | 3.26667 | 3.25166 | [2.4038302, 4.2176997] | 0.7086 | 0.109746 |\n",
109109
"+-----------+----------+--------------+--------------------+------------------+------------------------+-------------------+-----------------+\n"
110110
]
111111
}
@@ -132,11 +132,11 @@
132132
"+-----------+----------+--------------+--------------------+------------------+------------------------+-------------------+-----------------+\n",
133133
"| variant | totals | sum_values | observed_average | posterior_mean | credible_interval | prob_being_best | expected_loss |\n",
134134
"+===========+==========+==============+====================+==================+========================+===================+=================+\n",
135-
"| psg | 15 | 9 | 0.6 | 0.60265 | [0.2155696, 1.2316701] | 0.7528 | 0.0429958 |\n",
135+
"| psg | 15 | 9 | 0.6 | 0.60265 | [0.2140532, 1.2324781] | 0.756 | 0.0425375 |\n",
136136
"+-----------+----------+--------------+--------------------+------------------+------------------------+-------------------+-----------------+\n",
137-
"| city | 14 | 14 | 1 | 1 | [0.4372915, 1.8002024] | 0.07635 | 0.438615 |\n",
137+
"| city | 14 | 14 | 1 | 1 | [0.4487859, 1.8478473] | 0.07585 | 0.439937 |\n",
138138
"+-----------+----------+--------------+--------------------+------------------+------------------------+-------------------+-----------------+\n",
139-
"| bayern | 15 | 13 | 0.86667 | 0.86755 | [0.3716345, 1.6041345] | 0.17085 | 0.308254 |\n",
139+
"| bayern | 15 | 13 | 0.86667 | 0.86755 | [0.3680665, 1.6067354] | 0.16815 | 0.30884 |\n",
140140
"+-----------+----------+--------------+--------------------+------------------+------------------------+-------------------+-----------------+\n"
141141
]
142142
}
@@ -173,7 +173,7 @@
173173
"name": "python",
174174
"nbconvert_exporter": "python",
175175
"pygments_lexer": "ipython3",
176-
"version": "3.8.17"
176+
"version": "3.10.12"
177177
}
178178
},
179179
"nbformat": 4,

examples/session_data_manual_pbbs.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"InteractiveShell.ast_node_interactivity = \"all\"\n",
1414
"\n",
1515
"import numpy as np\n",
16+
"np.set_printoptions(legacy=\"1.25\")\n",
1617
"import pandas as pd\n",
1718
"from bayesian_testing.metrics import eval_bernoulli_agg, eval_delta_lognormal_agg"
1819
]
@@ -480,7 +481,7 @@
480481
"name": "python",
481482
"nbconvert_exporter": "python",
482483
"pygments_lexer": "ipython3",
483-
"version": "3.8.17"
484+
"version": "3.10.12"
484485
}
485486
},
486487
"nbformat": 4,

examples/waiting_time_ab_testing.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"InteractiveShell.ast_node_interactivity = \"all\"\n",
1414
"\n",
1515
"import numpy as np\n",
16+
"np.set_printoptions(legacy=\"1.25\")\n",
1617
"import pandas as pd\n",
1718
"from bayesian_testing.experiments import ExponentialDataTest"
1819
]
@@ -173,7 +174,7 @@
173174
"name": "python",
174175
"nbconvert_exporter": "python",
175176
"pygments_lexer": "ipython3",
176-
"version": "3.8.17"
177+
"version": "3.10.12"
177178
}
178179
},
179180
"nbformat": 4,

0 commit comments

Comments
 (0)