|
4 | 4 | Slots is intended to be a basic, very easy-to-use multi-armed bandit library for Python. |
5 | 5 |
|
6 | 6 | [](https://pypi.org/project/slots/) |
7 | | -[](https://github.com/psf/black) |
| 7 | +[](https://pypi.org/project/slots/) |
8 | 8 | [](https://pepy.tech/project/slots) |
9 | 9 |
|
| 10 | +[](https://github.com/psf/black) |
| 11 | +[]() |
| 12 | + |
| 13 | + |
| 14 | + |
10 | 15 | #### Author |
11 | 16 | [Roy Keyes](https://roycoding.github.io) -- roy.coding@gmail |
12 | 17 |
|
@@ -51,13 +56,15 @@ b.run() |
51 | 56 |
|
52 | 57 | To inspect the results and compare the estimated win probabilities versus the true win probabilities: |
53 | 58 | ```Python |
| 59 | +# Current best guess |
54 | 60 | b.best() |
55 | 61 | > 0 |
56 | 62 |
|
57 | | -# Assuming payout of 1.0 for all "wins" |
58 | | -b.est_payouts() |
| 63 | +# Estimate of the payout probabilities |
| 64 | +b.est_probs() |
59 | 65 | > array([ 0.83888149, 0.78534031, 0.32786885]) |
60 | 66 |
|
| 67 | +# Ground truth payout probabilities (if known) |
61 | 68 | b.bandits.probs |
62 | 69 | > [0.8020877268854065, 0.7185844454955193, 0.16348877912363646] |
63 | 70 | ``` |
@@ -124,7 +131,7 @@ For documentation on the slots API, see [slots-docs.md](https://github.com/royco |
124 | 131 |
|
125 | 132 | ### Contributing |
126 | 133 |
|
127 | | -I welcome contributions, though the pace of development is highly variable. Please file issues and sumbit pull requests as makes sense. |
| 134 | +I welcome contributions, though the pace of development is highly variable. Please file issues and submit pull requests as makes sense. |
128 | 135 |
|
129 | 136 | The current development environment uses: |
130 | 137 |
|
|
0 commit comments