Hello,
I am putting together a KNN model and and have it setup to run a Model Comparison node to run K= 5 - 15.
I have the Model Comparison node to show Misclassification Rate and Validation instead of Train. When I run the model it goes well but in the Report section and in the Output of the results I get the Valid: Average Squared Error instead of the Misclassification Rate.
There have been multiple ways I ave tried to rectify this, remaking the node, closing out and opening it back up, updating and changing things but it shows this each time. So I just need help in figuring out what is happening here?
Thank you,
Any time you do not understand your output you need to share the code that you ran. That way it is easy for us to see if you missed an option and YOU will not have keep saying "but I had that option set". Best is to copy the CODE and all messages from the LOG and then on the forum open a text box using the </> icon and paste all that.
Sometimes the log will show messages that indicate something about your data was incompatible with a given option and indicate why the output is not as expected. With the LOG we don't have to ask a bunch of questions based on guesses of what might be going on.
Hello Thank you for the critique, this is my first time posting on here and still a beginner at SAS. I am only able to show certain bits as some of this might be sensitive but I will show what I can. Here is what it looks like from a diagram perspective and then the output I am wanting to pull from but doesnt show the column for misclassification:
Is it possible that your Target Variable is defined as Interval instead of Nominal or Binary? I replicated parts of your diagram & the Fit Statistics results showed the Misclassification rates.
Hey Tom,
I was able to get with my professor and she came to that conclusion as well. I had 1 variable wrong and it came out totally different but yes that was the fix, thank you for that!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Ready to level-up your skills? Choose your own adventure.