The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Splitting examples into training/test
Hello,
I'm new to RapidMiner but I have spent some time playing around with the software. Anyway, I haven't been able to find a way to split the input file into training and test sets using an attribute. So basically, in my dataset I have an attribute specifying which examples belong to the training set and which to the test set. How can I train a model only on the training examples and test it on the test set? The only solution I found was to use the BatchXValidation but I want to build a single model (I believe BatchXValidation would build 2 models, correct?).
Any help would be very much appreciated.
Thanks!
I'm new to RapidMiner but I have spent some time playing around with the software. Anyway, I haven't been able to find a way to split the input file into training and test sets using an attribute. So basically, in my dataset I have an attribute specifying which examples belong to the training set and which to the test set. How can I train a model only on the training examples and test it on the test set? The only solution I found was to use the BatchXValidation but I want to build a single model (I believe BatchXValidation would build 2 models, correct?).
Any help would be very much appreciated.
Thanks!
0
Answers
you could use the ExampleFilter operator with the attribute_value_filter option, in order to select only examples of the first or of the second type.
Combined with an IOMultiplier, which doubles your input example set, it should be possible to do as you like.
Here's a (not very sensible, since splitting after the label does not make sense) example process, which demonstrates my suggestion:
Greetings,
Sebastian
Thanks!
Karolina.