コード例 #1
0
        public void test_ToStrings_gets_the_string_representation_of_the_instance()
        {
            Runtime rt = TestingHelpers.LoadSmallRuntime <TitanicDataRow2>("titanic_train.csv", 0, 3);

            weka.core.Instance instance = rt[0].Impl;
            System.Collections.Generic.IEnumerable <string> strs = instance.ToStrings();
            Assert.AreEqual(new[] { "0", "3", "Braund, Mr. Owen Harris", "male", "22", "1", "0", "A/5 21171", "7.25", "?", "S" }, strs);
        }