matches() public method

public matches ( Example e ) : bool
e AIMA.Core.Learning.Framework.Example
return bool
Example #1
0
 public void testDLTestMatchFailsOnMismatchedExample()
 {
     DataSet ds = DataSetFactory.getRestaurantDataSet();
     Example e = ds.getExample(0);
     DLTest test = new DLTest();
     test.add("type", "Thai");
     Assert.IsFalse(test.matches(e));
 }
Example #2
0
 public void testDLTestMatchesEvenOnMismatchedTargetAttributeValue()
 {
     DataSet ds = DataSetFactory.getRestaurantDataSet();
     Example e = ds.getExample(0);
     DLTest test = new DLTest();
     test.add("type", "French");
     Assert.IsTrue(test.matches(e));
 }
Example #3
0
 public void testDLTestMatchSucceedsWithMatchedExample()
 {
     DataSet ds = DataSetFactory.getRestaurantDataSet();
     Example e = ds.getExample(0);
     DLTest test = new DLTest();
     test.add("type", "French");
     Assert.IsTrue(test.matches(e));
 }