Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Diagnostics;
|
---|
4 | using System.Linq;
|
---|
5 | using System.Text;
|
---|
6 | using System.Threading.Tasks;
|
---|
7 |
|
---|
8 | namespace HeuristicLab.Algorithms.Bandits.BanditPolicies {
|
---|
9 | public class EmptyPolicyActionInfo : IBanditPolicyActionInfo {
|
---|
10 | public double Value { get { return 0.0; } }
|
---|
11 |
|
---|
12 | public bool Disabled { get; private set; }
|
---|
13 | public void UpdateReward(double reward) {
|
---|
14 | Debug.Assert(!Disabled);
|
---|
15 | }
|
---|
16 | public void Disable() { this.Disabled = true; }
|
---|
17 | public void Reset() { this.Disabled = false; }
|
---|
18 | public void PrintStats() { Console.WriteLine("disabled {0}", Disabled); }
|
---|
19 | }
|
---|
20 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.