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

Which operator can be used to split the input into subsets?

tshindetshinde Member Posts: 1 Learner I
edited May 2021 in Help
I have an input set that has been sampled and normalized. I now want to divide this dataset into 2 subsets based on the value of one attribute only. eg: The feature is 'has_children'. I want to segregate the instances depending on has_children=0/1 and then apply clustering to each subset.
I am not trying to create training-test sets for validation. If anyone has any pointers, please let me know.

Best Answer

Answers

  • ceaperezceaperez Member Posts: 541 Unicorn
    @tshinde,

    you can use the Generate Attributes  operator under Blender->Attributes->Generation.
    Then you can work with a if rule and  assign a numeric value 1 if the string takes a value "has_children" and other in other case.

    e.g. if(yourattibute=="has_children",1,0)

    Best


Sign In or Register to comment.