AIMA.Test.Core.Unit.Learning.Framework.InformationAndGainTest.testDataSetSplit C# (CSharp) Method

testDataSetSplit() private method

private testDataSetSplit ( ) : void
return void
        public void testDataSetSplit()
        {
            DataSet ds = DataSetFactory.getRestaurantDataSet();
            Dictionary<String, DataSet> hash = ds.splitByAttribute("patrons");// this
            // should
            // be
            // the
            // generic
            // distribution
            Assert.AreEqual(3, hash.Keys.Count);
            Assert.AreEqual(6, hash["Full"].size());
            Assert.AreEqual(2, hash["None"].size());
            Assert.AreEqual(4, hash["Some"].size());
        }