Accesing Parameters of ClassificationPerformance

rvaz
rvaz New Altair Community Member
edited November 5 in Community Q&A
Hi,

I'm currently integrating rapidminer in a java application.

I need to know how can I access the parameters in a PerformanceVector.
			    
                                  .
                                  .
                                  .
                      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 = ...
At the end of the process I would like to save the AUC value in a variable.
Thanks for your time,

Tagged:

Answers

  • land
    land New Altair Community Member
    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,
      Sebastian