Skip to content

Commit

Permalink
Updated the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
crenwick committed Apr 12, 2016
1 parent a95ad3b commit c3b3ee2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

A series of bandit algorithms in Swift, built with functional programing and immutable data structures.

![Swiper](http://i.imgur.com/EhLAg7t.png)

## Epsilon-Greedy
The epsilon in the [Epsilon-greedy strategy](https://en.wikipedia.org/wiki/Multi-armed_bandit#Semi-uniform_strategies) controls the proportion of explorations vs exploitations.

*Example usage:*
swift
```
```swift
let epsilonGreedy = EpsilonGreedy(0.1, nArms: 2)
let selectedArm = epsilonGreedy.selectArm()
somethingWithCallback(color: selectedArm) { (reward) in
Expand Down

0 comments on commit c3b3ee2

Please sign in to comment.