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

Set Data based on id rather than index

dragoljubdragoljub Member Posts: 241 Contributor II
edited November 2018 in Help
The Set Data operator allows you to change one attribute value for on sample. It would be useful if the sample can be selected by its ID not the row index. Imagine you have attribute filters and the index constantly changes making you manually change the sty data parameter.

Any workaround to this would be appreciated. ???

Thanks,
-Gagi

Answers

  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    Hi Gagi,
    you could simply use the filter examples operator with the attribute value condition, id = desired value and then set the example index constantly to 1. To avoid the discarding of all your examples simply multiply the exampleset before and pass the copy by. Since the data is changed, the change will be in all views of the example set.

    I will post a process to our community. You might download it using the community extension.

    Greetings,
      Sebastian
  • dragoljubdragoljub Member Posts: 241 Contributor II
    Thanks for the work around but it still seems a bit cumbersome, especially since my id values have a meaning are not simply a list of increasing numbers.
  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    Hi,
    if you find it useful enough you might add it to our bugtracker as a feature request for later versions.

    Greetings,
      Sebastian
Sign In or Register to comment.