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

How to weight examples like SPSS?

tmyerstmyers Member Posts: 21 Contributor II
edited November 2018 in Help
Hi. I am new to RM and am trying to learn about its Weighting functions. I want to weight a dataset like in SPSS, where I select a single weight variable to weight examples (or cases in SPSS-speak). I would select the variable to use as the weight, and any subsequent aggregations I would perform would apply this weight variable to the examples included in the calculation.

I have been reading the definitions of the various Weighting variables and most seem to either derive weights from the dataset itself OR apply weights on an attribute-by-attribute basis......I'm just just looking to apply a single weight variable to everything.

Any advice would be greatly appreciated-

Thanks,

Tim
Tagged:

Answers

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

    you can set a attribute to the role weight using Set Role operator. This is then used in models, aggregations on an example-by example basis. Of course you can first generate the attribute with a Generate Attributes operator.

    ~Martin
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • tmyerstmyers Member Posts: 21 Contributor II
    Thanks Martin. That seems to work for me so long as I remove any examples with a NULL value for the attribute set as the Weight role. I had a few stray examples that didn't have a value for my Weight attribute.

    Am I correct in assuming that whichever attribute I set as a Weight must have values for all examples?
Sign In or Register to comment.