Python Forum

Full Version: About dicision tree analysis Help me! TT
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello thank you for read this.
I’m japanese so maybe mistake in grammer, excuse me. Confused

I study dicision tree analysis in scikit-learn.
I use dicision tree analysis for the data to divide which chip is OK or NG based on Tests.
For the form of the target data, please see table.1 .
[Image: 3913773]
Table.1
The data consists of ChipID (for identification) , NG (Chip is OK or NG)
And Test1~ (test for Chips ,it become feature of Chips )
Decision tree devides Chips based on Tests , OK or NG.
The example of tree is Fig.1
[Image: 3913774]
Fig.1
I want to get the dividing rules from the dicision tree.
To get the dividing rule of the part surrounded by red circles , following the structure of the tree is neccesary. Following the structure means getting Test46&Test65 for the divinding rule.
I would like to implement such work in python.
I read the source of scikit-learn, but I couldn’t. Wall Please advice me. Doh