"Why is this error?"
Shubha
New Altair Community Member
Hi,
If I run the below code, i get an error corresponding to the enclosed brackets ( or [. But the formulas are correct.
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
If I run the below code, i get an error corresponding to the enclosed brackets ( or [. But the formulas are correct.
<operator name="Root" class="Process" expanded="yes">Why is the error?
<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>
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
0
Answers
-
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 Karanth0