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
Traverse and operate an ExampleSet
Hi everyone!
I would like to multiply each value of attribute subset (Att2 - Att10) by value of other attribute (Att1), in a multiple exampleset:
For example:
Att1 Att2 Att3 .... Att10
1 2 2 3
2 3 2 1
3 1 2 1
2 2 1 2
will be:
Att1 Att2 Att3 .... Att10
1 2 2 3
2 6 4 2
3 3 6 3
2 4 2 4
I've worked with macros in this way:
Loop Examples -> Loop Attributes -> Set Data
I'm not sure if this is efficient, does anyone has a better solution?
Thanks !!! ; )
I would like to multiply each value of attribute subset (Att2 - Att10) by value of other attribute (Att1), in a multiple exampleset:
For example:
Att1 Att2 Att3 .... Att10
1 2 2 3
2 3 2 1
3 1 2 1
2 2 1 2
will be:
Att1 Att2 Att3 .... Att10
1 2 2 3
2 6 4 2
3 3 6 3
2 4 2 4
I've worked with macros in this way:
Loop Examples -> Loop Attributes -> Set Data
I'm not sure if this is efficient, does anyone has a better solution?
Thanks !!! ; )
0
Answers
You can also do it like this .. You'll need to tidy up the attribute names etc., but you get the idea.
Good weekend
That's good for multiply like my example, but if it's more complicated funtion, Is it correct my way?
Thanks a lot Haddock : )
Good weekend 8)