predict() 공개 메소드

public predict ( Example e ) : String
e AIMA.Core.Learning.Framework.Example
리턴 String
예제 #1
0
        private ConstantDecisonTree majorityValue(DataSet ds)
        {
            Learner learner = new MajorityLearner();

            learner.train(ds);
            return(new ConstantDecisonTree(learner.predict(ds.getExample(0))));
        }
예제 #2
0
 private ConstantDecisonTree majorityValue(DataSet ds)
 {
     Learner learner = new MajorityLearner();
     learner.train(ds);
     return new ConstantDecisonTree(learner.predict(ds.getExample(0)));
 }