The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 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
"Rules Decision Tree"
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?
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:
0