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