예제 #1
0
        public void AddClassifier(Func <IDataTable, IRowClassifier> classifierProvider)
        {
            var samples        = _GetNextSamples();
            var iterationTable = _table.CopyWithRows(samples);
            var classifier     = classifierProvider(iterationTable);

            _classifier.Add(classifier);
            var correct = _table
                          .Classify(classifier)
                          .Select(r => r.Classification == r.Row.GetField <string>(_classColumnIndex))
                          .ToList()
            ;

            _AddClassifierResults(correct);
        }