Beispiel #1
0
 private TestRunnerEventArgs GetTestRunnerEventArgsForFinishedTestIteration(IStride queryStride, int seconds, List <int> startAts, FScore fscore, HammingDistanceResultStatistics statistics, int iteration, Stopwatch stopwatch, int verified)
 {
     return(new TestRunnerEventArgs
     {
         FScore = fscore,
         RowWithDetails =
             new object[]
         {
             GetInsertMetadata(), queryStride.ToString(), seconds, startAts[iteration],
             fscore.Precision, fscore.Recall, fscore.F1,
             statistics.TruePositiveInfo,
             statistics.TruePositivePercentileInfo,
             statistics.FalseNegativesInfo,
             statistics.FalseNegativesPercentileInfo,
             statistics.FalsePositivesInfo,
             statistics.FalsePositivesPercentileInfo,
             (double)stopwatch.ElapsedMilliseconds / 1000
         },
         Verified = verified
     });
 }
 private TestRunnerEventArgs GetTestRunnerEventArgsForFinishedTestIteration(IStride queryStride, int seconds, List<int> startAts, FScore fscore, HammingDistanceResultStatistics statistics, int iteration, Stopwatch stopwatch, int verified)
 {
     return new TestRunnerEventArgs
         {
             FScore = fscore,
             RowWithDetails =
                 new object[]
                     {
                         this.GetInsertMetadata(), queryStride.ToString(), seconds, startAts[iteration],
                         fscore.Precision, fscore.Recall, fscore.F1,
                         statistics.TruePositiveInfo,
                         statistics.TruePositivePercentileInfo,
                         statistics.FalseNegativesInfo,
                         statistics.FalseNegativesPercentileInfo,
                         statistics.FalsePositivesInfo,
                         statistics.FalsePositivesPercentileInfo,
                         (double)stopwatch.ElapsedMilliseconds / 1000
                     },
             Verified = verified
         };
 }
Beispiel #3
0
 private string GetInsertMetadata()
 {
     return(lastInsertStride != null?lastInsertStride.ToString() : string.Empty);
 }