private void AddFullRegressionTests()
        {
            // Always compute training L1/L2 errors.
            Tests.Add(new RegressionTest(ConstructScoreTracker(TrainSet)));
            RegressionTest validTest = null;

            if (ValidSet != null)
            {
                validTest = new RegressionTest(ConstructScoreTracker(ValidSet));
                Tests.Add(validTest);
            }

            // If external label is missing use Rating column for L1/L2 error.
            // The values may not make much sense if regression value is not an actual label value.
            if (TestSets != null)
            {
                for (int t = 0; t < TestSets.Length; ++t)
                {
                    Tests.Add(new RegressionTest(ConstructScoreTracker(TestSets[t])));
                }
            }
        }
 private static bool ContainsRegressionTestReference(IEnumerable<Test> tests, RegressionTest referenceRegressionTest) {
     var generatedTests = referenceRegressionTest.GetGeneratedTests();
     return tests.Any(generatedTests.Contains);
     }
示例#3
0
        private static bool ContainsRegressionTestReference(IEnumerable <Test> tests, RegressionTest referenceRegressionTest)
        {
            var generatedTests = referenceRegressionTest.GetGeneratedTests();

            return(tests.Any(generatedTests.Contains));
        }