clustering - how to customize similarity function
Hi
so clustering is basically based on similarity/distance functions in whichoneexample is compared toallthe other examples of the data set.
Now I want a similiraty function in which thecell of an attribute/featureis not compared to all the other examples - instead that particular cell should be compared toonly a given range of defined values. For example: a cell can have two possible values [yes,no]. So the similiarity function should compare the given cell value with just the values 'yes' and 'no'.
Is this possible with RM? If so, how?
Thank you!
Tagged:
0
Best Answers
-
Telcontar120 Moderator, RapidMiner Certified Analyst, RapidMiner Certified Expert, MemberPosts:1,635UnicornIf I have understood what you are trying to do, I think you can replicate what you want by simply creating a new attribute that specifies whether a given attribute value is contained in a reference set. You can do this using Generate Attributes and the "contains" function. After doing that (and you can loop through any set of attributes for doing this) you will get a set of yes/no attributes which you can then use to do your clustering as opposed to your original attributes.6
-
Telcontar120 Moderator, RapidMiner Certified Analyst, RapidMiner Certified Expert, MemberPosts:1,635Unicorn@LeMarcYou can chain several "contains" functions inside an IF statement to cover as many allowed values as you like. I think the approach I described will work for you; you will end up with a new set of attributes that tell you whether each of the underlying attributes contains a valid response or not (binary yes/no).
I'm not convinced that clustering is going to be the best way to handle this problem, though. You might want to look at some of the outlier detection algorithms as well.
5
Answers
Dortmund, Germany
Dortmund, Germany