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
model from inside of "Optimize parameters" proces
Hi.
I constructed model in which I: 1. optimize parameters on the basis of training data 2. By "Set parameters" I send optimal parameters to optimal learner (SVM) 3. I trained this SVM with this parameters on the basis of the training data 3.aafter that I used "Apply model" with test data and I get results.
I think this is basic way how to do this.
My question is: Inside of "Optimize parameters" model was built only with some partition of training data, because I used Crossvalidation and some (originally training) data was used for testing. And I want to get this model based on exactly this data and not model build with optimal parameters but on all training data. Is this possible? Isn't somewhere video or text about this? I found only tutorials where is some parts of this proces.
I hope my english is clear enough, and will be happy for answer
Milan
I constructed model in which I: 1. optimize parameters on the basis of training data 2. By "Set parameters" I send optimal parameters to optimal learner (SVM) 3. I trained this SVM with this parameters on the basis of the training data 3.aafter that I used "Apply model" with test data and I get results.
I think this is basic way how to do this.
My question is: Inside of "Optimize parameters" model was built only with some partition of training data, because I used Crossvalidation and some (originally training) data was used for testing. And I want to get this model based on exactly this data and not model build with optimal parameters but on all training data. Is this possible? Isn't somewhere video or text about this? I found only tutorials where is some parts of this proces.
I hope my english is clear enough, and will be happy for answer
Milan
0
Answers
I hope I could help you. If something is still unclear please post a minimal example process.
Cheers, Marius
As I can't load your processes, I can only guess: did you check, that the parameters of the SVM operator are set correctly, i.e. comply with the output of the Optimization operator? If not, check if you have written the operator names in the set parameters operator correctly. Remember, that "set operator name" must be the name of the svm operator inside the optimization, and "operator name" the one you want to copy the parameters to.
Additionally, by default the main criterion of the Performance operators is accuracy for classification tasks. If you want to optimize another criterion, you have to set the main criterion of the performance operator inside the optimization correctly. If you can't find the correct criterion, remember that there is more than one performance operator available in RapidMiner - choose the correct one for your problem.
Cheers,
Marius
Thank you very much for patience with me. But I think that I have everything OK where you think I could have mistake. I am sending you my process again. Previously I copied it from Process window, now I am copying it from XML window. My problem is, that according to LOG process, which is writing parameters and correlation to the file different parameters seems to be optimal than thouse which are setting to SVM optimal learner. I am not able to find mistake.
- in the log operator inside the OP you should log the performance of the the X-Validation to get the averaged performance of all validation runs.
- you are using different data for optimization and testing -> the result may differ a bit, even if the data are from the same distribution
Milan