Train() публичный Метод

public Train ( IEnumerable trainsequence ) : void
trainsequence IEnumerable
Результат void
Пример #1
0
        public GestureModel FinishTrainingSession()
        {
            if (!this.analyzing && !this.learning)
            {
                if (this.trainsequence.Any())
                {
                    // Training the model with this.trainsequence.Count gestures...
                    this.learning = true;

                    GestureModel m = new GestureModel();
                    m.Train(this.trainsequence);
                    this.classifier.addGestureModel(m);

                    this.trainsequence = new List<Gesture>();
                    this.learning = false;

                    return m;
                }
            }

            return null;
        }
Пример #2
0
        public GestureModel FinishTrainingSession()
        {
            if (!this.analyzing && !this.learning)
            {
                if (this.trainsequence.Any())
                {
                    // Training the model with this.trainsequence.Count gestures...
                    this.learning = true;

                    GestureModel m = new GestureModel();
                    m.Train(this.trainsequence);
                    this.classifier.addGestureModel(m);

                    this.trainsequence = new List <Gesture>();
                    this.learning      = false;

                    return(m);
                }
            }

            return(null);
        }