Pages: [1]
  Print  
Author Topic: Why is this error?  (Read 756 times)
Shubha
Full Member
***
Posts: 141


« on: June 05, 2009, 03:56:10 PM »

Hi,

If I run the below code, i get an error corresponding to the enclosed brackets ( or [. But the formulas are correct.

Code:
<operator name="Root" class="Process" expanded="yes">
    <operator name="ExampleSetGenerator" class="ExampleSetGenerator">
        <parameter key="target_function" value="random"/>
        <parameter key="number_examples" value="10"/>
    </operator>
    <operator name="Real2Integer" class="Real2Integer">
        <parameter key="round" value="true"/>
    </operator>
    <operator name="AttributeAggregation" class="AttributeAggregation">
        <parameter key="attribute_name" value="max"/>
        <parameter key="aggregation_attributes" value="att.*"/>
        <parameter key="aggregation_function" value="maximum"/>
    </operator>
    <operator name="FeatureIterator" class="FeatureIterator" expanded="yes">
        <parameter key="filter" value="att.*"/>
        <parameter key="iteration_macro" value="loo"/>
        <parameter key="work_on_input" value="false"/>
        <operator name="AttributeConstruction" class="AttributeConstruction">
            <list key="function_descriptions">
              <parameter key="try_%{loo}" value="(%{loo}-max)^2"/>
            </list>
        </operator>
    </operator>
</operator>

Why is the error?

If I change the formula as "(%{loo}-1)^2" in the AttributeConstruction operator, there is no error.

What exactly is happening?


Thanks for your help,
Shubha
Logged
Shubha
Full Member
***
Posts: 141


« Reply #1 on: June 05, 2009, 04:01:45 PM »

Ah!... Got that... 'max' i guess is a key word... and hence cannot be taken as to define an attribute name.... If I change the attribute name from 'max' to 'maxi', then i get rid of the error....

Regards,
Shubha Karanth
Logged
Pages: [1]
  Print  
 
Jump to: