AIMA.Core.Learning.Inductive.DLTest.add C# (CSharp) Method

add() public method

public add ( String nta, String ntaValue ) : void
nta String
ntaValue String
return void
        public void add(String nta, String ntaValue)
        {
            if (!attrValues.ContainsKey(nta))
            {
                attrValues.Add(nta, ntaValue);
            }
            else
            {
                attrValues[nta] = ntaValue;
            }

        }

Usage Example

Exemplo n.º 1
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));
 }
All Usage Examples Of AIMA.Core.Learning.Inductive.DLTest::add