"Error in VALIDATE, but not while RUNNING"

Shubha
Shubha New Altair Community Member
edited November 5 in Community Q&A
Hi,

I have merged three examplesets from an Exampleset and get the final exampleset. I then apply a sorting on this exampleSet. But when I VALIDATE  this code, I get the error, "[Error] Sorting: Sorting: Sorting: Missing input: ExampleSet". But when i RUN the code, the sorting is done. Why is this?

Thanks, Shubha
Tagged:

Answers

  • haddock
    haddock New Altair Community Member
    Please post you code. I cannot replicate your problem, as this shows..
    <operator name="Root" class="Process" expanded="yes">
        <operator name="ExampleSetGenerator" class="ExampleSetGenerator">
            <parameter key="target_function" value="random"/>
        </operator>
        <operator name="ExampleSetGenerator (2)" class="ExampleSetGenerator">
            <parameter key="target_function" value="random"/>
        </operator>
        <operator name="ExampleSetGenerator (3)" class="ExampleSetGenerator">
            <parameter key="target_function" value="random"/>
        </operator>
        <operator name="ExampleSetMerge" class="ExampleSetMerge">
        </operator>
        <operator name="Sorting" class="Sorting">
            <parameter key="attribute_name" value="att1"/>
        </operator>
    </operator>
  • Shubha
    Shubha New Altair Community Member
    Getting back to this thread after a long time,

    The below code has one particular instance of the above which I was saying:
    <operator name="Root" class="Process" expanded="yes">
        <operator name="ExampleSetGenerator (3)" class="ExampleSetGenerator">
            <parameter key="target_function" value="spiral cluster"/>
            <parameter key="number_of_attributes" value="2"/>
        </operator>
        <operator name="KMedoids" class="KMedoids">
            <parameter key="k" value="3"/>
        </operator>
        <operator name="Outlier Detection" class="OperatorChain" expanded="yes">
            <operator name="ValueIterator" class="ValueIterator" expanded="yes">
                <parameter key="attribute" value="cluster"/>
                <parameter key="iteration_macro" value="clus_num"/>
                <operator name="ExampleFilter" class="ExampleFilter">
                    <parameter key="condition_class" value="attribute_value_filter"/>
                    <parameter key="parameter_string" value="cluster=%{clus_num}"/>
                </operator>
            </operator>
            <operator name="ExampleSetMerge" class="ExampleSetMerge">
            </operator>
            <operator name="Sorting (2)" class="Sorting">
                <parameter key="attribute_name" value="id"/>
            </operator>
        </operator>
    </operator>
    If we click the VALIDATE button, it says an error, "Missing input: ExampleSet". But, running the code, doesn't give any error and performs the expected job. Why is this? (Actually the problem is not with the sorting, infact for any other operator, the error is thrown.)

    Also, if we DISABLE the operator, "KMedoids", the VALIDATE doesn't give the error.

    Could anyone please explain?

    Thanks, Shubha