The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
AttributeConstruction + average(X1)
Hi,
I have two variables in my ExampleSet, 'X1' and 'average(X1)'. The variable 'average(X1)' is a variable created from RM. Now I want to do an 'AttributeConstruction' based on the variable, 'average(X1)'. Say this could be, (X1-average(X1))^2. But I get the error, 'Unrecognized Symbol "average" Syntax error (implicit multiplication not enabled).
How do I make this work?
Thanks, Shubha
I have two variables in my ExampleSet, 'X1' and 'average(X1)'. The variable 'average(X1)' is a variable created from RM. Now I want to do an 'AttributeConstruction' based on the variable, 'average(X1)'. Say this could be, (X1-average(X1))^2. But I get the error, 'Unrecognized Symbol "average" Syntax error (implicit multiplication not enabled).
How do I make this work?
Thanks, Shubha
0
Answers
see below..
Now, this has to be done for all the attribues. Attribute names can again be anything...
Thanks, Shubha
I agree, if RM makes an attribute, it should be usable. No doubt that will get changed, but in the meantime use a regex to remove the brackets in the attribute name, like this..
Until then, however, there are two new helper operators to overcome those naming issues:
- ChangeAttributeNamesReplace: replaces characters in matching attribute names, e.g. all non-word characters by an underscore
- ChangeAttributeNames2Generic: replaces the matching attribute names by generic names
Cheers,
Ingo