登录
首页 » python » knn算法,机器学习K-近邻算法

knn算法,机器学习K-近邻算法

于 2022-04-15 发布 文件大小:1.14 kB
0 178
下载积分: 2 下载次数: 2

代码说明:

k近邻算法( kNN ),它的工作原理是:存在一个样本数据集合,也称作训练样本集,并且样本集中每个数据都存在标签,即我们知道样本集中每一数据 与所属分类的对应关系。输人没有标签的新数据后,将新数据的每个特征与样本集中数据对应的特征进行比较,然后算法提取样本集中特征最相似数据(最近邻)的分类标签。一般来说,我们只选择样本数据集中前砼最相似的数,这就是藤近邻算法中的出处,通常是不大于 20 的整数。 最后,选择个最相似数据中出现次数最多的分类,作为新数据的分类。 

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Python算法教程_中文版
    Python算法学习入门资料,中文版,学习Python的入门经典(Python algorithm learning materials)
    2019-03-07 15:19:48下载
    积分:1
  • MAZE
    可以简单地走一个小迷宫,程序尚不完善,希望收到指导意见(can simply walk through a small maze, and the procedure is not perfect yet.)
    2019-06-13 16:05:56下载
    积分:1
  • gradient
    Sky and desert retro gradient generator powered by PyGame
    2016-03-13 01:05:48下载
    积分:1
  • Music-Genre-Classification-master
    说明:  语音识别,实现音乐语音的特征提取和识别处理(Speech recognition for feature extraction and recognition processing of music speech)
    2020-03-15 10:54:11下载
    积分:1
  • GMM聚类
    GMM聚类实现,利用jupybook实现出来,可以看算法的实现原理。(GMM clustering implementation, using jupybook realization, can see the implementation principle of the algorithm.)
    2020-06-18 23:20:02下载
    积分:1
  • 重力异常正演
    说明:  计算长方形产生的重力异常,理论计算和具体的实现方法.(Calculation of gravity anomaly caused by rectangle)
    2019-12-02 14:29:58下载
    积分:1
  • pinpuganzhi
    基于机器学习的认知无线电频谱感知,机器学习的认知无线电频谱感知(Based on machine learning cognitive radio spectrum sensing, machine learning, cognitive radio spectrum sensing)
    2013-11-23 13:28:59下载
    积分:1
  • CVIU_2
    面部地标检测旨在定位给定特征点的面部图像的关键点,这些特征点通常遭受由任意姿势,不同面部表情和部分遮挡引起的变化。我们提出了一个粗到细的框架,它将堆叠的沙漏网络和显着区域的注意力细化联系起来,以实现稳健的面部对齐。为了实现这一目标,我们首先提出了一个多尺度区域学习模块(MSL)来分析不同面部区域的结构信息,并提取强烈的判别性深层特征。然后我们采用堆叠沙漏网络(SHN)进行热图回归和初始面部地标预测。(Facial landmark detection aims to locate keypoints for a facial image given feature points, which typically suffers from variations caused by arbitrary pose, diverse facial expressions, and partial occlusion. We put forward a coarse-to-fine framework which joints stacked hourglass network and salient region attention refinement for robust face alignment. In order to achieve this goal, we firstly put forward a multi-scale region learning module (MSL) to analyze the structure information at different facial region and extract strong discriminative deep feature. Then we employ stacked hourglass network (SHN) for heatmap regression and initial facial landmarks prediction.)
    2020-06-20 11:00:02下载
    积分:1
  • python绘制一个图形示例源码(tkinter)
    python绘制一个图形示例源码(tkinter)
    2018-09-18下载
    积分:1
  • img_style
    使用canny边缘检测算法,提取图像轮廓(Canny edge detection algorithm is used to extract image contour.)
    2018-03-17 13:09:29下载
    积分:1
  • 696516资源总数
  • 106783会员总数
  • 25今日下载