13 lines
172 B
Go
13 lines
172 B
Go
package gambit
|
|
|
|
type Bandit interface {
|
|
Select(r float64) int
|
|
Update(a int, r float64) error
|
|
Reset(n int) error
|
|
|
|
Size() int
|
|
|
|
Count(res []int)
|
|
Reward(res []float64)
|
|
}
|