Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.Bandits/BanditPolicy.cs @ 11710

Last change on this file since 11710 was 11708, checked in by gkronber, 10 years ago

#2283: worked on bandits for grammatical optimization

File size: 510 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
7namespace 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.