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 {
|
---|
9 | public class EmptyPolicyActionInfo : IPolicyActionInfo {
|
---|
10 | public bool Disabled { get; private set; }
|
---|
11 | public void UpdateReward(double reward) {
|
---|
12 | Debug.Assert(!Disabled);
|
---|
13 | }
|
---|
14 | public void Disable() { this.Disabled = true; }
|
---|
15 | public void Reset() { this.Disabled = false; }
|
---|
16 | public void PrintStats() { Console.WriteLine("disabled {0}", Disabled); }
|
---|
17 | }
|
---|
18 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.