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
[SOLVED] Generate Attribute with count of examples
Hello,
I have probably a very simple question:
how can i add an attribute that shows the count of all examples (so the value for this new attribute should always be the same in each row)?
or:
how can i add an attribute that sums up the values of another attribute? I cant use the aggregate operatior because I still need the original attributes...
Thank you very much!
I have probably a very simple question:
how can i add an attribute that shows the count of all examples (so the value for this new attribute should always be the same in each row)?
or:
how can i add an attribute that sums up the values of another attribute? I cant use the aggregate operatior because I still need the original attributes...
Thank you very much!
Tagged:
0
Answers
Check out macros, which are "global variables" in normal speak, like this... Hope that's useful.
I didnt know that this Extract Macro operator solves exactly this problem.
Sometimes it is a pity that there is no tutorial for the basic operators (for preprocessing), but the online tutorial covers mostly the modeling operators...