KNN with parameter tuning and LOG process....Not getting confusion matrix for all k
vbsingh
New Altair Community Member
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...
Tagged:
0
Best Answers
-
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.1
-
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.1
Answers
-
How to get confusion matrix for all k values through grid search...0
-
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.1
-
But I need parameter optimization too...0
-
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.1 -
Great I am trying it......
0 -
plz send the .properties file also
0 -
Here is the zip folder with all the related files, you just need to unzip in your local repository of rapidminer folder and run it.1
-
What should be the range for J48 machine learning technique while using optimize operator0