print the result in Java
kersor
New Altair Community Member
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
0
Answers
-
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,
Marco0