For comparison, a decision tree C4.5 was applied to the data, and the rules from the tree are shown inTable 10.The two numbers(n1/n2) after each rule are, respectively, the number of passengers satisfying the condition (the left hand side of the rule), and the number of passengers with a different outcome from the rule consequent. For example, for thefirst rule, there were totally 94 passengers satisfying “sex=female ∧pclass=1”, and 3 of them did not satisfy Y=1.A rule with a smallern2(given the samen1) indicates a smaller numberof exceptions, and greater accuracy.
đang được dịch, vui lòng đợi..