how to select attributes with sum equal to a specific number?

mansourmansour MemberPosts:14Contributor II
Dear All
I have a large dataset and I'd like to select just the attributes which sum of each attribute is equal to zero, or 1 or 2.
Any hint?
Regards

Answers

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University ProfessorPosts:3,387RM Data Scientist
    edited August 2020
    Hi,
    thats a fun one.

    I would create myself a custom weights object using aggregate. Then you can use Select by weights to apply those weights as a filter. Attached is an example.

    Best,
    Martin





    <宏/ >


























































    <参数键=“k”值="10"/>



    Only take attributes where the weight is &gt; 100




    <连接from_op =“聚合”from_port = "的例子t output" to_op="Rename by Replacing" to_port="example set input"/>














    - Head of Data Science Services at RapidMiner -
    Dortmund, Germany
Sign InorRegisterto comment.