matches() публичный Метод

public matches ( Example e ) : bool
e AIMA.Core.Learning.Framework.Example
Результат bool
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }