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

Problem getPredictedLabel() method

navnav Member Posts: 28 Contributor II
edited November 2018 in Help
Hi, i tried to compare the label and the prediction value of the r
Output exampleSet of a rapidminer process in java with the methods getlabel and getPredictedLabel but the latter return to me double value like 0.353 or 0.127 but the label is a polynamial type with value 0 and 1. In the gui i don't have this problem, why?
Tagged:

Answers

  • Options
    SkirzynskiSkirzynski Member Posts: 164 Maven
    Hey,

    internally polynominal values are mapped to doubles. To return the value as a String use ...

    example.getValueAsString(example.getAttributes().getLabel());
    example.getValueAsString(example.getAttributes().getPredictedLabel());
    Best regards
      Marcin
  • Options
    navnav Member Posts: 28 Contributor II
    Thank you very much... Actually I knew that polynominal value were wapped in double but I didn't understand why with only two possible value the method returned many different double values
Sign In or Register to comment.