登录
首页 » 算法 » KNN分类算法

KNN分类算法

于 2022-09-30 发布 文件大小:35.06 kB
0 160
下载积分: 2 下载次数: 2

代码说明:

用KNN算法实现数据分类,算法简单易懂,适合初学者!简单来说,K-NN可以看成:有那么一堆你已经知道分类的数据,然后当一个新数据进入的时候,就开始跟训练数据里的每个点求距离,然后挑离这个训练数据最近的K个点看看这几个点属于什么类型,然后用少数服从多数的原则,给新数据归类。

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

发表评论

0 个回复

  • 器,压栈处理。 急需语音程序,谢谢!
    计算器,压栈处理。 急需语音程序,谢谢!-calculators, Yazhan treatment. Voice urgent procedures, thank you!
    2022-08-21 22:18:51下载
    积分:1
  • 电子稳像
    基于灰度投影的电子稳像 opencv1.0 效果一般 需要改进 可以选择高版本的opencv库支持 达到更好的效果
    2022-11-12 13:55:03下载
    积分:1
  • taxable procedures. Income can be calculated weekly, recently income from the be...
    计税程序。可以计算每周收入、最近收入、从年初到目前的所得税、扣除的联邦收入税以及帐目检查等。 This program computes weekly payroll, current earnings, year to date earnings FICA tax, federal Income Tax Withheld, and check Amount.-taxable procedures. Income can be calculated weekly, recently income from the beginning of the current income tax, the deduction of federal income taxes as well as accounts of inspection. This program computes weekly payroll, current earnings, year to date earnings FICA tax, federal Income Tax Withheld, and check Amount.
    2022-08-20 10:08:10下载
    积分:1
  • 矩阵求逆c语言
    矩阵求逆c语言算法!-matrix inversion algorithm c language!
    2022-05-24 18:25:02下载
    积分:1
  • Insertion sort
    insertion_sort.cpp #include #include #include #define N 5000 int insertion_sort( int data_insert[] ); void creat_file( char *file_name, int data_file[] ); int main(int argc, char *argv[]){    int data[N];    creat_file( argv[1], data ); 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-03-05 04:13:51下载
    积分:1
  • I have a group here, a number of years of data are ranked by order of a certain...
    我这儿有一组若干年份的数据,是按一定时间顺序排的,想用曲线拟合法得到2010年的人均国内生产总值,不知怎么用matlab,高手赐教!! !!可加分 年份 人均国内生产总值(元) 1996 27000 1997 30619 1998 33282 1999 33689 2000 41020 2001 43344 2002 46030 2003 53887 2004 59271 2005 64507 2006 70597 07.1季 20505 07.2季 19619 07.3季 19874 07.4季 19223 08.1季 19703-I have a group here, a number of years of data are ranked by order of a certain period of time, and want to use curve fitting to be in 2010 the per capita gross domestic product, I do not know how to use matlab, you let us know! ! ! ! ! ! Add points to the year the per capita GDP (Yuan) 1996 27000 1997 30619 1998 33282 1999 33689 2000 41020 2001 43344 2002 46030 2003 53887 2004 59271 2005 64507 2006 70597 07.1 quarter 19,619 07.3 quarter 20,505 07.2 quarter 19,223 08.1 quarter 19,874 07.4 quarter 19,703
    2022-04-11 07:30:58下载
    积分:1
  • 基于BP神经网络的语音识别
    bp神经网络在语音识别中的应用,同时利用Matlab进行仿真得到结果。  神经网络是近年来信息科学、脑科学、神经心理学等诸多学科共同关注和研究的热点。由于其具有良好的抽象分类特性,现已应用于语音识别系统的研究和开发,并成为解决识别相关问题的有效工具。文章在讲述语音识别过程的基础上重点讨论利用BP神经网络对语音进行识别,用matlab完成对神经网络的训练和测试,并获得满意的结果。
    2023-08-29 10:30:04下载
    积分:1
  • 图形演示任务
    图形演示任务。在VC环境下分别在每个旋转方向,使用OpenGL实现场景中包括地面,立方体,四面体,键盘控制三维漫游,漫游,以及立方体和四面体
    2022-06-26 14:54:10下载
    积分:1
  • 本程序实现了卡尔曼滤波器的及其在信号处理中的应用
    本程序实现了卡尔曼滤波器的算法及其在信号处理中的应用-This procedure achieved a Kalman Filter Algorithm and Its Application in Signal Processing
    2022-10-29 19:10:04下载
    积分:1
  • 最小二乘
    综合了最优化中最小二乘问题的基本经典解法,用C++分别实现了拟牛顿、高斯牛顿、LM三种非线性问题的最小二乘解法,以及基于SVD分解的线性问题的最小二乘解法。
    2023-04-14 20:10:04下载
    积分:1
  • 696516资源总数
  • 106633会员总数
  • 4今日下载