I have a small set of data points (about 10) in a 2D space, and each of them has a category label. I want to classify a new data point based on existing data point labels and also associate a “probability” for belonging to any label class.
Is it appropriate to designate a new point based on the label to the nearest neighbor (for example, the nearest neighbor K, K = 1)? To get the probability, I want to rearrange all the marks and calculate the entire minimum distance of the unknown point and the rest and find the proportion of cases when the minimum distance is less than or equal to the distance that was used to mark it.
thank
Roweis KNN . "" , , j ,
,
d_ij - j.
Nearest Neighbor , , K-. , K, , , . :
P ( | z) = P (z | ) P ()/P (z) = K ()/K
, . , :
VP (x) = K/N ( V)
P (x) = K/NV ()
P (x = label) = K ()/N () V ( K () N () - )
P () = N ()/N.
K, , , , .
K- , , SVM. , . 1. K 2. K, .
LibSVM.
10 ; 1 5 6... — ,1 1 1 5 6... — 3 ,... .10 , . 1 - (/) ** p,. ( p .)
, .
: , 0 1, -. "" , , ,-.
: academar.google.com "(single | 1) " > 300 ; "k " 3000.( ), 10 k-NN ,, 9 . ., stats.stackexchange.com,
: .
, , X, Y . , .
Now suppose X, Y is a lat / long job for this person. The person working is not related to sharing the label (last name).
So, it depends on the semantics of your tags and axes.
NTN!
Source: https://habr.com/ru/post/1790727/More articles:I need to get all row data from jqGrid when I click a link in the same row using jQgrid - jqueryJSF2.0 Passing Value objects between managed beans - javaHTTP authentication hangs with Zend - httpselect specific records with a specific order without using the general condition - sqlBest practice for hosting javascript files for user authentication? - javascriptМагические числа в реализации на С++ функции Excel NORMDIST - c++2-column layout with fixed content width, unlimited background width - htmlУстановка Android ADT plugin v9.0.0 на Eclipse Classic 3.6.1 не удалось - androidЕсть ли плагин jQuery/JS для создания карты, похожей на карты Google? - jqueryHow to prevent CurrencyManager from calling BeginEdit () / EndEdit () methods for related objects - c #All Articles