标签:where lan alt appear group roi nts sed pes
Classification: supervised learning with labels.
Clustering: unsupervised learning without labels.
Classification and Clustering are the two types of learning methods which characterize objects into groups by one or more features. These processes appear to be similar, but there is a difference between them in the context of data mining. The prior difference between classification and clustering is that classification is used in supervised learning technique where predefined labels are assigned to instances by properties, on the contrary, clustering is used in unsupervised learning where similar instances are grouped, based on their features or properties.
k-means: an unsupervised algorithm used for clustering.
k-NN: a supervised algorithm used for classification.
K-nearest neighbours needs labelled data to train on. With the given data, KNN can classify new, unlabelled data by analysis of the k
number of the nearest data points.
Steps
按照距离的递增关系进行排序;
选取距离最小的K个点;
确定前K个点所在类别的出现频率;
返回前K个点中出现频率最高的类别作为测试数据的预测分类。
Steps
标签:where lan alt appear group roi nts sed pes
原文地址:https://www.cnblogs.com/dulun/p/12227384.html