public void Train() { if (!LabelSet || !ResultSet) { throw new Exception(); } IndicationStrength.Push(LastResult, Label); foreach (var f in InternalModels) { f.Train(); } this.ContextSet = false; this.LabelSet = false; this.TrainCount++; TrainComplete(this, new EventArgs()); }
public void Train() { if (!LabelSet || !ResultSet || !EvalSet) { throw new Exception(); } IndicationStrength.Push(this.LastResult, this.Label); if (!stats.ContainsKey(this.Label)) { stats[this.Label] = new RunningStats(); } stats[this.Label].Add(this.Eval, stats[this.Label].Apply(this.Eval)); this.ContextSet = false; this.LabelSet = false; this.TrainCount++; TrainComplete(this, new EventArgs()); throw new NotImplementedException(); }