Beispiel #1
0
        public string Train(IrisData data)
        {
            var model      = this._pipeline.Train <IrisData, IrisPrediction>();
            var prediction = model.Predict(data);

            return(prediction.PredictedLabels);
        }
Beispiel #2
0
        public string Train(IrisData data)
        {
            // STEP 5: Train your model based on the data set
            var model = this._pipeline.Train <IrisData, IrisPrediction>();

            // STEP 6: Use your model to make a prediction
            // You can change these numbers to test different predictions
            var prediction = model.Predict(data);

            return(prediction.PredictedLabels);
        }