dt = Open( "$SAMPLE_DATA/Car Poll.jmp" );
obj = Partition(
Y( :country ),
X( :sex, :marital status, :age, :type, :size ),
Method( "Decision Tree" ),
Initial Splits( :size == {"Large"}, {}, {:size == {"Medium"}} )
);
•
|
The condition is for the left side and is either [name compareoperator value] or [name == list of values]. The left is an empty list if the right has splits. Omit the right side if there are no splits. The left and right continue recursively in this format.
|