Jun-08-2018, 09:56 PM
Hello thank you for read this.
I’m japanese so maybe mistake in grammer, excuse me.
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]](https://www.axfc.net/u/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]](https://www.axfc.net/u/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.
Please advice me.
I’m japanese so maybe mistake in grammer, excuse me.

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 .
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
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.

