Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Rapidminer once I import a data set how do I change the type of a column?

I've imported a datset into Rapidminer 5 and one of the columns that was supposed to be nominal or polynomial was set as a numeric. My data set has over 500 attributes so I don't really want to have to reimport my data every time I realize I've made a mistake like this. Is there some way to either automate the import process so that it saves the column types I set each time or can I go back and edit my already imported data set attribute types?

like image 685
Paul Mendoza Avatar asked Apr 05 '11 15:04

Paul Mendoza


2 Answers

add this operator to your process, after you load the data:

Data Transformation > Type Conversion > Numerical to Polynomial

on the operator, select

attribute type filter = single
attribute = [name of your attribute]

like image 138
Neil McGuigan Avatar answered Oct 13 '22 00:10

Neil McGuigan


here you go: http://i.stack.imgur.com/ov5yn.png

  1. Select "Numerical to Polynomial"
    1. Then change "attribute filter type" to 'subset' Then select attributes that you want to change.
    2. One more suggestion, you better store this output in your local repository so you dont need the conversion everytime you need the data. So, you will have both original and duplicate in your basket. :)
    3. Happy Data Mining...
like image 20
Gurupad Hegde Avatar answered Oct 12 '22 23:10

Gurupad Hegde