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

print the result in Java

kersorkersor Member Posts: 26 Maven
edited November 2019 in Help

Hi everyone

i  run a text mining procces  in java.When i  put:

System.out.println(ioResult.getElementAt(0).toString());
                System.out.println(ioResult);

the result is:
350 regular attributes,
special attributes = {
    label = #350: label (numeric/single_value)
    confidence_Positive = #352: confidence(Positive) (real/single_value)
    confidence_Negative = #353: confidence(Negative) (real/single_value)
    prediction = #351: prediction(label) (binominal/single_value)
}
(created by Set Role)

but i want in prediction to have positive or negative not the word 'label'.  How can i print the prediction of the process?

Regards
Tagged:

Answers

  • Marco_BoeckMarco_Boeck Administrator, Moderator, Employee-RapidMiner, Member, University Professor Posts: 1,996 RM Engineering
    Hi,

    you're basically using ExampleSet.toString() here, which only gives you a summary. You either have to create your own method to visualize the results in a way you need, or you can have a look at the various visualizers that come with RapidMiner, and see if something there is of some help to you.

    Moved to Development section.

    Regards,
    Marco
Sign In or Register to comment.