matches() public method

public matches ( Example e ) : bool
e AIMA.Core.Learning.Framework.Example
return bool
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }