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

Accesing Parameters of ClassificationPerformance

rvazrvaz Member Posts: 7 Contributor II
edited November 2018 in Help
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,

Answers

  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    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
Sign In or Register to comment.