Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
Nearest Neighbors - Query
venkatesh20
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
Find more posts tagged with
AI Studio
Accepted answers
All comments
land
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,
Sebastian
venkatesh20
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
Venki
venkatesh20
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?
land
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,
Sebastian
venkatesh20
Works Like a charm !! Thanks sebastian..
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups