private DecisionList DecisionListLearning(DataSet ds) { if (ds.Count == 0) { return(new DecisionList(positive, negative)); } var possibleTests = testFactory.CreateDLTestsWithAttributeCount(ds, 1); DLTest test = this.GetValidTest(possibleTests, ds); if (test == null) { return(new DecisionList(null, Failure)); } // at this point there is a test that classifies some subset of examples // with the same target value DataSet matched = test.MatchedExamples(ds); var list = new DecisionList(positive, negative); list.Add(test, matched.GetExample(0).TargetValue()); return(list.MergeWith(this.DecisionListLearning(test.UnmatchedExamples(ds)))); }
private void FindVolume() { DecisionList.Add(new Formulas(cube.FindVolumes(Given))); Answer.Add(answer.FindAnswerVolume(DecisionList, Find)); }
private void FindRib() { DecisionList.Add(new Formulas(cube.FindRibs(Given, Figure))); Answer.Add(answer.FindAnswerRib(DecisionList, Find)); }