示例#1
0
 public override void EnterExample(VowpalWabbitParser.ExampleContext context)
 {
     this.example = new Data()
     {
         F = new List <KeyValuePair <string, float> >()
     };
 }
示例#2
0
 public override void ExitExample(VowpalWabbitParser.ExampleContext context)
 {
     this.stopwatch.Start();
     using (var vwExample = this.vw.ReadExample(this.example))
     {
         vwExample.Learn();
     }
     this.stopwatch.Stop();
 }
示例#3
0
 public override void EnterExample(VowpalWabbitParser.ExampleContext context)
 {
     this.example.Features.Clear();
 }
示例#4
0
 public override void ExitExample(VowpalWabbitParser.ExampleContext context)
 {
     this.example.Line = context.GetText();
     this.Created(this.example, this.example.Label);
 }
示例#5
0
 public override void ExitExample(VowpalWabbitParser.ExampleContext context)
 {
     this.example.Line = context.GetText();
     this.action(this.example);
 }
示例#6
0
 public override void ExitExample(VowpalWabbitParser.ExampleContext context)
 {
     this.stopwatch.Start();
     this.vw.Learn(this.example, this.label);
     this.stopwatch.Stop();
 }