Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 11711 was 11711, checked in by gkronber, 9 years ago

#2283: folders for bandits and policies

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.