Nearest Neighbors - Query
venkatesh20
New Altair Community Member
I want to design a RM flow, where applying KNN model should return the k nearest neighbors instead of predicting the class of the unlabeled data based on k nearest neighbors.
i.e if I provide one row of input data, the result I need is the k records which are neighbors to it, nothing more.
Here i am attempting to design a recommendation system using rapid miner flow. I am not sure if its possible to design such a flow. I would be grateful if anybody can help.
Thanks,
Venki
i.e if I provide one row of input data, the result I need is the k records which are neighbors to it, nothing more.
Here i am attempting to design a recommendation system using rapid miner flow. I am not sure if its possible to design such a flow. I would be grateful if anybody can help.
Thanks,
Venki
Tagged:
0
Answers
-
Hi,
RapidMiner 5 has an operator called Cross Distances, which exactly does what you are longing for. You must give it two example sets, one containing the request examples and one containing the reference examples. It will return the top k nearest or farthest examples on any distance measure available.
If you build your recommendation system, please keep in mind that it has to be licensed under the AGPL3 unless you have bought an OEM license of RapidMiner.
Greetings,
Sebastian0 -
Dear Sebastian,
Thanks for the info. This is not for commercial use. I am doing my M.S disertation, I have chosen to research various techniques for recommendation systems. I will surely get an OEM license if i can successfully make a sellable product out of it . Thanks again
Venki0 -
Dear sebastian,
The output example set of cross distances has 3 attributes request, document and distance. The attributes request, document are the id of the records in the datasets. Is there any operator which can use to retrieve the data corresponding to document ids?0 -
Hi,
you might join the resulting set with the original reference set using the Join operator. Before this you have to define the correct attribute to be the id using the set role operator.
Greetings,
Sebastian0 -
Works Like a charm !! Thanks sebastian..0