The RapidMiner community is on read-only mode until further notice. Technical support via cases will continue to work as is. For any urgent licensing related requests from Students/Faculty members, please use the Altair academic forum here.
iterate and extract according to value
Hi,
I am new to RapidMiner and I am struggling doing some simple iterations. I have a dataset that has different user ratings for a number of products and I need to extract the best product for each user according to these ratings. The file looks something like this:
I know this can be done with 'loop attributes' and macros, but I can't find an example to use as guide.
Any help/guidance would be more than welcome, thanks !!
I am new to RapidMiner and I am struggling doing some simple iterations. I have a dataset that has different user ratings for a number of products and I need to extract the best product for each user according to these ratings. The file looks something like this:
I can extract the best product for each user using something like: read_csv -> select attribute (set user id) -> sort (best to worst) -> filter examples (index=1), but is really inconvenient if I have a lot of users to process.
ID-user,ID-product,Rating
003,040,3
004,330,4
034,330,5
003,032,3
(...)
I know this can be done with 'loop attributes' and macros, but I can't find an example to use as guide.
Any help/guidance would be more than welcome, thanks !!
0
Answers
I think the easiest way to do this is to combine an aggregate with a join. See attached process. Please be aware that his process produces two lines for a customer if there are two best rated products. You can use either remove duplicates or another aggregate to handle this.
~Martin
Dortmund, Germany
And how do I mark this thread as solved?
Cheers
In general there are some references like:
https://rapidminer.com/resource/data-mining-masses/ - Very basic
http://www.amazon.com/Exploring-Data-RapidMiner-Andrew-Chisholm/dp/1782169334/ref=sr_1_3?s=books&;ie=UTF8&qid=1454406443&sr=1-3&keywords=rapidminer - A bit more advanced i think, andrew is supporting here in the forums
http://www.amazon.com/Predictive-Analytics-Data-Mining-RapidMiner/dp/0128014601/ref=sr_1_1?s=books&;ie=UTF8&qid=1454406443&sr=1-1&keywords=rapidminer - My favorite if it comes down to learn predictive analytics w/o pure math
I was thinking about putting together some kind of kind with tipps and tricks. I started to do so on my blog. Let's see - maybe i will create some document somewhen soon.
~Martin
P.S: My blog can be found at: http://data-analytics.ghost.io/
Dortmund, Germany