47 references to Prediction
Microsoft.ML.TimeSeries.Tests (47)
TimeSeriesDirectApi.cs (47)
562string outputColumnName = nameof(SrCnnAnomalyDetection.Prediction);
575Assert.Equal(1, prediction.Prediction[0]);
577Assert.Equal(0, prediction.Prediction[0]);
619string outputColumnName = nameof(SrCnnAnomalyDetection.Prediction);
637Assert.Equal(3, prediction.Prediction.Length);
639Assert.Equal(1, prediction.Prediction[0]);
641Assert.Equal(0, prediction.Prediction[0]);
644Assert.Equal(4, prediction.Prediction.Length);
647Assert.Equal(1, prediction.Prediction[0]);
648Assert.Equal(5.00, prediction.Prediction[3], 0.01);
651Assert.Equal(0, prediction.Prediction[0]);
654Assert.Equal(7, prediction.Prediction.Length);
657Assert.Equal(1, prediction.Prediction[0]);
658Assert.Equal(5.00, prediction.Prediction[3], 0.01);
659Assert.Equal(5.00, prediction.Prediction[4], 0.01);
660Assert.Equal(5.01, prediction.Prediction[5], 0.01);
661Assert.Equal(4.99, prediction.Prediction[6], 0.01);
662Assert.True(prediction.Prediction[6] > data[k].Value || data[k].Value > prediction.Prediction[5]);
666Assert.Equal(0, prediction.Prediction[0]);
689string outputColumnName = nameof(SrCnnAnomalyDetection.Prediction);
712Assert.Equal(7, prediction.Prediction.Length);
713Assert.Equal(0, prediction.Prediction[0]);
714Assert.True(prediction.Prediction[6] <= data[index].Value);
715Assert.True(data[index].Value <= prediction.Prediction[5]);
736string outputColumnName = nameof(SrCnnAnomalyDetection.Prediction);
763Assert.Equal(1, prediction.Prediction[0]);
767Assert.Equal(0, prediction.Prediction[0]);
791string outputColumnName = nameof(SrCnnAnomalyDetection.Prediction);
817Assert.Equal(7, prediction.Prediction.Length);
820Assert.Equal(1, prediction.Prediction[0]);
821Assert.True(prediction.Prediction[6] > data[k].Value || data[k].Value > prediction.Prediction[5]);
825Assert.Equal(0, prediction.Prediction[0]);
826Assert.True(prediction.Prediction[6] <= data[k].Value);
827Assert.True(data[k].Value <= prediction.Prediction[5]);
850string outputColumnName = nameof(SrCnnAnomalyDetection.Prediction);
875Assert.Equal(7, prediction.Prediction.Length);
878Assert.Equal(1, prediction.Prediction[0]);
879Assert.True(prediction.Prediction[6] > data[k].Value || data[k].Value > prediction.Prediction[5]);
883Assert.Equal(0, prediction.Prediction[0]);
884Assert.True(prediction.Prediction[6] <= data[k].Value);
885Assert.True(data[k].Value <= prediction.Prediction[5]);
918string outputColumnName = nameof(SrCnnAnomalyDetection.Prediction);
942Assert.True(prediction.Prediction[3] >= 0);
949Assert.True(prediction.Prediction[3] <= 0);