Practice Problem on k-NN Classification | MATLAB

Problem Statement:
Given the training set:
{{(0, 1),CA}, {(−1,−1),CA}, {(1, 1),CA}, {(−2,−2),CB}, {(2, 2),CB}}
By using the above training set , classify the points (5, 1) and (−1, 4) applying the  3-NN decision rule



Code Link: https://www.matlabcoding.com/p/practice-problem-on-k-nn-classification.html

No comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();