The Altair Community is migrating to a new platform to provide a better experience for you. The RapidMiner Community will merge with the Altair Community at the same time. In preparation for the migration, both communities are on read-only mode from July 15th - July 24th, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here.
Options

"Rules Decision Tree"

kkasskkass Member Posts: 1 Contributor I
edited June 2019 in Help
Hi, everyone.
I developed a operator.My operator creates a Decision Tree model for the data1.
 
                //create a model Decision Tree

DecisionTreeLearner evaluator;
try {
evaluator = OperatorService.createOperator(DecisionTreeLearner.class);
} catch (OperatorCreationException e) {
throw new UserError(this, 904, "DecisionTreeLearner operator", e.getMessage());
}

//Modelo data1
Model A = evaluator.learn(data1);


This Model "A" is applied to other data (Data2).And sent to an output port.
               
                ExampleSet result1 = A.apply(Data2)
                exampleSetOutput1.deliver(result1);

In a result1 appears  a column titled "prediction(label)" the result of applying the classification tree for each data.

How I can do to make this column appears in addition to another with the Rules used to classify?
Tagged:
Sign In or Register to comment.