Pages: [1]
  Print  
Author Topic: [SOLVED] Example Set Transformation - Performance Problem  (Read 356 times)
South2wood
Newbie
*
Posts: 5


« on: January 06, 2012, 01:55:09 PM »

Hi,

I have a large data set (10 millionn lines)  where each line/example of the table is identified by two id-attributes, for example like this:

domain (id), week (id), value (attribute)
facebook.com; 1; 0,5
facebook.com; 2; 0,6
google.com; 1; 0,9
google.com; 2; 0,4
...

Now I want to transform the table into a time series, like this:
domain (id), value_week1 (attribute), value_week2 (attribute)
facebook.com; 0,5; 0,6
google.com; 0,9; 0,4

I tried to solve it by importing my data into a mysql database and do the transformation process with a php script, but it lasts for hours and didn't terminate yet. Is there a transformation operator in rapidminer which can do the job?

Another question. If I define two attributes as ID, does rapidminer understand that each line is defined by two IDs? I tried some set operations (Set Minus, Join) and it doesn't seem to work?

Happy New Year by the way ;-)

Best regards,
Matthias



 
« Last Edit: January 09, 2012, 05:51:14 PM by South2wood » Logged
earmijo
Jr. Member
**
Posts: 94


« Reply #1 on: January 07, 2012, 06:38:02 PM »

For your first question: Use the operator Pivot (using domain as the group attribute and week as the index attribute).

Regards,

E
Logged
South2wood
Newbie
*
Posts: 5


« Reply #2 on: January 09, 2012, 05:51:47 PM »

Thanks, I dont know why I didn't see it. Exactly what I needed!
Logged
misanthropic789
Newbie
*
Posts: 8


« Reply #3 on: January 22, 2012, 08:50:23 PM »

I was unable to get it to see more than one ID field.  Not sure if I was doing something wrong or if its a limitation of the software.
Logged
Marius
Global Moderator
Sr. Member
*****
Posts: 370



WWW
« Reply #4 on: January 23, 2012, 09:18:26 AM »

If you need one unique ID you could use the Generate Attribute operator to create a new attribute from the two ID attributes.

Best, Marius
Logged

Please add [SOLVED] to the topic title when your problem has been solved! (do so by editing the first post in the thread and modifying the title)
Pages: [1]
  Print  
 
Jump to: