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

"Generate Attribute using values of Aggregate Attributes"

svtorykhsvtorykh Member Posts: 35 Maven
edited June 2019 in Help

Hi RM team, seems to be a very basic calculation, but can't create an expression for the following scenario.

I have example set with Positivity values (positive, neutral, negative). I'm using aggregate operator to perform counts for all example set.

 

Have table as output in the following format:

Positivity(Att1) Count of Positivity (Att2)

Positive                    500

Neutral                     100

Negative                   500

 

I then need to generate another Attribute (positivity %), which needs to have a ratio value based on positive/negative values from att2.

 

What is the proper expression to use in this case?

 

Thanks!

Answers

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,533 RM Data Scientist

    Hi @svtorykh,

    one way to do this is to extract the number of examples before hand using Extract Macro and then simply divide by it using Generate Attributes.

     

    Best,

    Martin

    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
Sign In or Register to comment.