diff --git a/Experimentation/OfflineTrainer.cs b/Experimentation/OfflineTrainer.cs index 71a4dc8e..43795041 100644 --- a/Experimentation/OfflineTrainer.cs +++ b/Experimentation/OfflineTrainer.cs @@ -92,10 +92,10 @@ namespace Experimentation }); } - // var pred = vw.Learn(line, VowpalWabbitPredictionType.ActionScore); + // var pred = vw.Learn(line, VowpalWabbitPredictionType.ActionProbabilities); using (var example = jsonSerializer.ParseAndCreate(line)) { - var pred = example.Learn(VowpalWabbitPredictionType.ActionScore); + var pred = example.Learn(VowpalWabbitPredictionType.ActionProbabilities); prediction.WriteLine(JsonConvert.SerializeObject( new @@ -160,7 +160,7 @@ namespace Experimentation // var learnBlock = new TransformBlock( // evt => // { - // evt.Prediction = evt.Example.Learn(VowpalWabbitPredictionType.ActionScore); + // evt.Prediction = evt.Example.Learn(VowpalWabbitPredictionType.ActionProbabilities); // evt.Example.Dispose(); // return evt; // }, diff --git a/client/ClientDecisionServiceTest/VWTest.cs b/client/ClientDecisionServiceTest/VWTest.cs index 4aaa813f..88a74375 100644 --- a/client/ClientDecisionServiceTest/VWTest.cs +++ b/client/ClientDecisionServiceTest/VWTest.cs @@ -87,7 +87,7 @@ namespace ClientDecisionServiceTest DateTime timeStamp = DateTime.UtcNow; var context = new FoodContext { Actions = new int[] { 1, 2, 3 }, UserLocation = location }; - ActionScore[] predicts = vw.Predict(context, VowpalWabbitPredictionType.ActionScore); + ActionScore[] predicts = vw.Predict(context, VowpalWabbitPredictionType.ActionProbabilities); Assert.AreEqual(expectedActions[location], predicts[0].Action + 1); } } diff --git a/client/ClientDecisionServiceVowpalWabbit/VWExplorer.cs b/client/ClientDecisionServiceVowpalWabbit/VWExplorer.cs index fc5930c0..2925666c 100644 --- a/client/ClientDecisionServiceVowpalWabbit/VWExplorer.cs +++ b/client/ClientDecisionServiceVowpalWabbit/VWExplorer.cs @@ -50,7 +50,7 @@ namespace Microsoft.Research.MultiWorldTesting.ClientLibrary } } - var vwPredictions = vw.Predict(context, VowpalWabbitPredictionType.ActionScore); + var vwPredictions = vw.Predict(context, VowpalWabbitPredictionType.ActionProbabilities); // VW multi-label predictions are 0-based var ap = vwPredictions