RapidMiner - Part VI: Model validation using cross-validation and/or independent validation set
Sunday, April 6th, 2008Model validation using cross-validation
- Add ArffExampleSource operator (IO->Examples) to Root.
- Configure it to load a training set from a file.
- Set the value of the label_attribute to the class column.
- Add XValidation operator (Validation) to Root and configure it by setting the number_of_validations to 10.
- Add LibSVMLearner operator (Learner->Supervised->Functions) to XValidation operator.
- Add OperatorChain operator to XValidation operator.
- Add ModelApplier operator to OperatorChain operator.
- Add Performance operator (Validation) to OperatorChain operator.
- Run.
Develop a model
- Add ArffExampleSource operator (IO->Examples) to Root.
- Configure it to load a training set from a file.
- Set the value of the label_attribute to the class column.
- Add LibSVMLearner operator (Learner->Supervised->Functions) to Root.
- Add ModelWriter operator (IO->Models) to Root and configure it to save the model to a file.
- Run.
Model validation using independent validation set
- Add ArffExampleSource operator (IO->Examples) to Root.
- Configure it to load an independent validation set from a file.
- Set the value of the label_attribute to the class column.
- Add ModelLoader operator (IO->Models) to Root and configure it to load the model that is saved in the model development phase.
- Add ModelApplier operator to Root.
- Add Performance operator (Validation) to Root.
- Run.
RapidMiner score full marks again for its ease in model validation.