WeightedPerformanceCreator

radone
radone New Altair Community Member
edited November 5 in Community Q&A
Hello,
could anyone give me an example how the WeightedPerformanceCreator should be used. Unfortunately, the code below returns "unknown" performance value.

Below I have made an example (which is a part of XValidation) where the default weight is 0.0 and the weight of "accuracy" and "relative_error" were explicitly set to 1.0 resp. 2.0. I do nut undersand why the resulting performance vector returns unknown.

Thank you in advance.
                    <operator name="ClassificationPerformance (5)" class="ClassificationPerformance">
                        <parameter key="keep_example_set" value="true"/>
                        <parameter key="main_criterion" value="relative_error"/>
                        <parameter key="accuracy" value="true"/>
                        <parameter key="relative_error" value="true"/>
                        <parameter key="squared_error" value="true"/>
                        <parameter key="correlation" value="true"/>
                        <list key="class_weights">
                        </list>
                    </operator>
                    <operator name="WeightedPerformanceCreator" class="WeightedPerformanceCreator">
                        <parameter key="default_weight" value="0.0"/>
                        <list key="criteria_weights">
                          <parameter key="accuracy" value="1.0"/>
                          <parameter key="relative_error" value="2.0"/>
                        </list>
                    </operator>
Tagged:

Answers

  • land
    land New Altair Community Member
    Hi,
    at least in RapidMiner 5.0 this works as expected.

    Greetings,
      Sebastian