Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuong Hoang <lhoang@live.com>2014-10-20 19:10:58 +0400
committerLuong Hoang <lhoang@live.com>2014-10-20 19:10:58 +0400
commitdc7bbb3b56a2a37e2c1f7353c526173fa208faed (patch)
tree6a6f0c239ba22f10f2c98796eae91cf9304a84c1 /cs_test
parent578eb7256b5a5adbc8c751acd49f521d71e9b7f1 (diff)
added sample statefulpolicyfunc to compile clock code
Diffstat (limited to 'cs_test')
-rw-r--r--cs_test/ExploreClock.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cs_test/ExploreClock.cs b/cs_test/ExploreClock.cs
index 68767999..b6f4606a 100644
--- a/cs_test/ExploreClock.cs
+++ b/cs_test/ExploreClock.cs
@@ -8,6 +8,10 @@ namespace cs_test
{
public class ExploreClock
{
+ private static UInt32 SampleStatefulPolicyFunc(int policyParams, CONTEXT appContext)
+ {
+ return (uint)((policyParams + appContext.Features.Length) % 10 + 1);
+ }
public static void Clock()
{
float epsilon = .2f;