Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Threading.Tasks;
|
---|
6 |
|
---|
7 | namespace HeuristicLab.Algorithms.Bandits {
|
---|
8 | public abstract class BanditPolicy : IPolicy {
|
---|
9 | public int NumActions { get; private set; }
|
---|
10 | public BanditPolicy(int numActions) {
|
---|
11 | this.NumActions = numActions;
|
---|
12 | }
|
---|
13 |
|
---|
14 | public abstract int SelectAction();
|
---|
15 | public abstract void UpdateReward(int action, double reward);
|
---|
16 | public abstract void Reset();
|
---|
17 | }
|
---|
18 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.