KNN with parameter tuning and LOG process....Not getting confusion matrix for all k
I am using KNN for multiclass problem . I am applying optimized grid search for parameter tuning and using log process for getting every cucle results. But I am getting only accuracy results and different values of K. How can i get the confussion matrix for all possible values of K in KNN..Please suggest and guide...
0
Best Answers
-
Telcontar120 Moderator, RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,635
Unicorn
This isn't possible with the log operator and optimize operator alone, I think you are going to need to use a loop and store the confusion matrix from each model run separately.6 -
varunm1 Moderator, Member Posts: 1,207
Unicorn
Hello @vbsingh
If you are just optimizing on K-Value, please look at the below process, where there are a couple of macros and store operators to store performance in the repository folder. This way, you can store the performance of each k value. You can import the process attached to your RM and change the store operator repository entry, but be sure to add the macro name in the current process of the store operator in the name.Regards,
Varun
https://www.varunmandalapu.com/Be Safe. Follow precautions and Maintain Social Distancing
6 -
varunm1 Moderator, Member Posts: 1,207
Unicorn
@vbsingh by the way, uncheck the "enable parallel execution" in optimize parameter operator.Regards,
Varun
https://www.varunmandalapu.com/Be Safe. Follow precautions and Maintain Social Distancing
6
Answers
Varun
https://www.varunmandalapu.com/
Be Safe. Follow precautions and Maintain Social Distancing
Thanks for sharing your operator.. It was great help. But i have one problem with J48 since there is two parameter ...so there is overlapping in result.. how to change the name of the result..and get entire result.