Accesing Parameters of ClassificationPerformance
rvaz
New Altair Community Member
Hi,
I'm currently integrating rapidminer in a java application.
I need to know how can I access the parameters in a PerformanceVector.
Thanks for your time,
I'm currently integrating rapidminer in a java application.
I need to know how can I access the parameters in a PerformanceVector.
At the end of the process I would like to save the AUC value in a variable.
.
.
.
Operator Performance =
OperatorService.createOperator(BinominalClassificationPerformanceEvaluator.class);
Performance.setParameter("main_criterion", "AUC");
chain1.addOperator(NBmodel);
chain2.addOperator(ModelApplier);
chain2.addOperator(Performance);
FixedSplitValidation.addOperator(chain1);
FixedSplitValidation.addOperator(chain2);
process.getRootOperator().addOperator(inputOperator);
process.getRootOperator().addOperator(FixedSplitValidation);
//double AUC = ...
Thanks for your time,
Tagged:
0
Answers
-
Hi,
what about using the get CriteriaNames method for recieving the names and then use the getCriterion(int) method with the index of the appropriate name? You might ask the PerformanceCriterion getFitness to recieve the value.
Please take a look at the java doc available at our project page at source forge for more details.
Greetings,
Sebastian0