登录
首页 » 算法 » 机器学习kNN算法的c语言实现

机器学习kNN算法的c语言实现

于 2023-03-26 发布 文件大小:2.42 kB
0 243
下载积分: 2 下载次数: 2

代码说明:

本人正在学习机器学习的算法,已经学习了几个,自己尝试着用c语言编写程序,这是其中的kNN算法,基于《机器学习实战》这本书。

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

发表评论

0 个回复

  • 傅里叶变换算法fft
    How To Use void main(void) { gen_w_r2(w, N); // Generate coefficient table bit_rev(w, N>>1); // Bit−reverse coefficient table DSPF_sp_cfftr2_dit(x, w, N); // radix−2 DIT forward FFT // input in normal order, output in // order bit−reversed // coefficient table in bit−reversed // order DSPF_sp_icfftr2_dif(x, w, N); // Inverse radix 2 FFT 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-03-02 15:55:21下载
    积分:1
  • 蓝牙技术在物联网中的应用研究
    资源描述随着蓝牙技术的不断演进和发展,蓝牙已经从单一 的传统蓝牙技术发展成集传统蓝牙。高速蓝牙和低耗能 蓝牙于一体的综合技术,不同的应用标准更是超过40 个。越来越广的技术领域和越来越多的应用场景,使得目 前的蓝牙技术成为包含传感器技术、识别技术、移动通信 技术等与物联网密切相关的综合技术。因此,蓝牙在物联 网中的应用具有十分广阔的前景。 本文根据传统蓝牙,高速蓝牙和低耗能蓝牙的不同 特性,分析其在物联网中的应用范围,设计相关的应用场 景,以推动蓝牙技术在物联网中的应用。
    2022-02-05 12:35:50下载
    积分:1
  • k-means 算法的工作过程说明如下:首先从n个数据对象任意选择 k 个对象作为初始聚类中心;而对于所剩下其它对象,则根据它们与这些聚类中心的相似度(距离),分别将它们分配给与其最相似的(聚类中心所代表的)聚类;然后再计算每个所获新聚类的聚类中心(该聚类中所有对象的均值);不断重复这一过程直到标准测度函数开始收敛为止。-k-means algorithm process as follows: First of all, the object data from the n choose k object as initial cluster centers and the remaining for the other object, then according to their cluster center with those of the similarity (distance) respectively assigned to them with the most similar (represented by cluster center) clustering obtained and then calculated for each new cluster center clustering (all objects in the cluster mean) repeated this process until the standard measure of function until the beginning of convergence.
    2023-07-14 07:15:02下载
    积分:1
  • 这是粒子群算法的一个源程序,程序很简单,已经运行过了,可以用,对初学者是个不错的程序...
    这是粒子群算法的一个源程序,程序很简单,已经运行过了,可以用,对初学者是个不错的程序-This is a source particle swarm optimization algorithm, the program is very simple, has been running over us, we can use, for beginners is a good program
    2022-08-08 21:47:13下载
    积分:1
  • 如何写遗传算法程序
    教你如何用c++编写遗传算法程序,并且有详细的示例,详细的描述了遗传算法的编写
    2022-08-13 08:02:51下载
    积分:1
  • 七段显示器的VHDL代码
    此代码用于使7段显示器老化;
    2022-11-10 05:30:04下载
    积分:1
  • 隐马尔可夫模型,训练阶段数据必须给予模型。
    hmm model, training phase data has to be given to the model .-hmm model, training phase data has to be given to the model .
    2022-02-06 05:00:23下载
    积分:1
  • 很好的调度仿真程序
    能够实现不通类型生产车间的调度仿真,适合于初学者进行相关方面的锻炼和学习。
    2022-02-06 22:57:55下载
    积分:1
  • ! 2 ! HOMPACK90 is a suite of FORTRAN 90 subroutines for solving nonline...
    ! 2 ! HOMPACK90 is a suite of FORTRAN 90 subroutines for solving nonlinear 3 ! systems of equations by homotopy methods. There are subroutines for 4 ! fixed point, zero finding, and general homotopy curve tracking problems, 5 ! utilizing both dense and sparse Jacobian matrices, and implementing 6 ! three different algorithms: ODE-based, normal flow, and augmented 7 ! Jacobian. The (driver) subroutines called by the user are given in the 8 ! table below, and are well documented internally. The user need not 9 ! be concerned with any other subroutines in HOMPACK90. -! 2 ! HOMPACK90 is a suite of FORTRAN 90 subroutines for solving nonlinear 3 ! systems of equations by homotopy methods. There are subroutines for 4 ! fixed point, zero finding, and general homotopy curve tracking problems, 5 ! utilizing both dense and sparse Jacobian matrices, and implementing 6 ! three different algorithms: ODE-based, normal flow, and augmented 7 ! Jac
    2022-07-21 06:18:17下载
    积分:1
  • 赫夫曼编码树的应用
    利用赫夫曼编码树的原理压缩和解压
    2023-02-10 02:25:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载