🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

print the result in Java

User: "kersor"
New Altair Community Member
Updated by Jocelyn

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

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Marco_Boeck"
    New Altair Community Member
    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