Skip to content

Commit 16cfb43

Browse files
authored
Merge pull request #16 from roycoding/0.3.1
0.3.1 Fixes #15 and sets default to `live=False`
2 parents c6881a2 + b7f20ee commit 16cfb43

File tree

5 files changed

+148
-103
lines changed

5 files changed

+148
-103
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Slots is intended to be a basic, very easy-to-use multi-armed bandit library for Python.
55

66
[![PyPI](https://img.shields.io/pypi/v/slots)](https://pypi.org/project/slots/)
7+
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
78
[![Downloads](https://pepy.tech/badge/slots)](https://pepy.tech/project/slots)
89

910
#### Author
@@ -22,7 +23,7 @@ Using slots to determine the best of 3 variations on a live website.
2223
```Python
2324
import slots
2425

25-
mab = slots.MAB(3)
26+
mab = slots.MAB(3, live=True)
2627
```
2728

2829
Make the first choice randomly, record responses, and input reward 2 was chosen. Run online trial (input most recent result) until test criteria is met.
@@ -120,3 +121,12 @@ For documentation on the slots API, see [slots-docs.md](https://github.com/royco
120121
- More MAB strategies
121122
- Argument to save regret values after each trial in an array.
122123
- TESTS!
124+
125+
### Contributing
126+
127+
I welcome contributions, though the pace of development is highly variable. Please file issues and sumbit pull requests as makes sense.
128+
129+
The current development environment uses:
130+
131+
- pytest >= 5.3 (5.3.2)
132+
- black >= 19.1 (19.10b0)

docs/slots-docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This documents details the current and planned API for slots. Non-implemented fe
2323
#### Running slots with a live website
2424
```Python
2525
# Using slots to determine the best of 3 variations on a live website. 3 is the default.
26-
mab = slots.MAB(3)
26+
mab = slots.MAB(3, live=True)
2727

2828
# Make the first choice randomly, record responses, and input reward
2929
# 2 was chosen.

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
setup(
1717
name='slots',
1818

19-
version='0.3.0',
19+
version='0.3.1',
2020

2121
description='A multi-armed bandit library for Python',
2222
long_description=long_description,
23+
long_description_content_type="text/markdown",
2324

2425
# The project's main homepage.
2526
url='https://github.com/roycoding/slots',

0 commit comments

Comments
 (0)