انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

k_nearest neighbor method principle

الكلية كلية العلوم للبنات     القسم قسم الحاسبات     المرحلة 4
أستاذ المادة زينب فلاح حسن الكيم       26/04/2018 09:02:29
What is KNN?
The K-nearest neighbors algorithm is a method for
classifying objects based on closest training examples in
the feature space.
KNN algorithm:
K-Nearest Neighbors (KNN) classification divides data into
a test set and a training set. For each row of the test set,
the K nearest (in Euclidean distance) training set objects
are found, and the classification is determined by majority
vote with ties broken at random. If there are ties for the Kth
nearest vector, all candidates are included in the vote.
In themodelsthatwehaveseen,weselectahypothesisspaceand
adjust a xedsetofparameterswiththetrainingdata(h (x))
Weassumethattheparameters summarizethetrainingandwecan
forgetaboutit
This methodsarecalled parametric models
When wehaveasmallamountofdataitmakessensetohaveasmall
set of parameters and to constraint the complexity of the model

When wehavealargequantityofdata,over ttingislessanissue
If datashowsthatthehipothesishastobecomplex,wecantryto
adjust tothatcomplexity
A non parametric modelisonethatcannotbecharacterizedbya
xed setofparameters
A familyofnonparametricmodelsis Instance BasedLearning
Javier Bejar

المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .