Retrieving Class Distribution

Unknown
edited November 5 in Community Q&A
When working with WEKA model it is possible to classify an instance,
and this can be translated to the RapidMiner model.apply(ExampleSet) method.

But in WEKA I can also retrieve the class distribution of a model, through
the method model.distributionForInstance(Instance).

How can I retrieve the class distribution for a RapidMiner model, given an Example.

Thanks,
--
Harry Wedemeijer
Tagged:

Answers

  • IngoRM
    IngoRM New Altair Community Member
    For this purpose you can use the confidences of the prediction. The distribution is read from the model prediction and stored in the special attributes "confidence(v1)", "confidence(v2)"....

    Cheers,
    Ingo