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

KNN分类器

于 2022-04-21 发布 文件大小:1.48 kB
0 146
下载积分: 2 下载次数: 1

代码说明:

开发了一个简单的投票K-NN与欧氏距离分类器,输入包括训练数据,测试数据和K值,输出是测试数据的分类结果。

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

发表评论

0 个回复

  • 下一部是计求解方程组
    下一部是计算求解方程组-under a calculation equations solution
    2022-07-05 09:59:41下载
    积分:1
  • 基于粒子群的PID控制器优化设计
    基于粒子群算法的PID控制器优化设计,本程序主要研究基于粒子群算法控制系统PID参数优化设计方法以及对PID控制的改进。选择控制系统的目标函数,本控制系统选用时间乘以误差的绝对值,通过对控制系统的逐步仿真,对结果进行分析
    2023-02-09 12:10:03下载
    积分:1
  • looking for the smallest number. Cpp C Algorithm
    找最小数.cpp C++算法-looking for the smallest number. Cpp C Algorithm
    2022-08-07 08:04:26下载
    积分:1
  • Learnin Mathematics with the ABACUS Activity
    Learnin Mathematics with the ABACUS Activity-book part 8
    2022-08-09 12:45:02下载
    积分:1
  • 一个公平的经验,农历和男性的经验
    支持公历、农历及公历转农历使用公式法(不是查表法)的日历控件,完全自主开发。- A fair experience, the lunar calendar and the male experience transfer the lunar calendar use formula law (is not Zha Biaofa) the calendar controls, completely independently develops.
    2023-05-04 12:35:02下载
    积分:1
  • 列主元消去 fortran程序
    资源描述通过列主元的高斯消去法计算AX=b,可以选择矩阵A的维数,即A的维数为任意,程序计算前确定即可,同时可以判断AX=b是否有解
    2022-06-21 06:44:33下载
    积分:1
  • 新型GA
    一种好的改进遗传算法function [opy,optimy]=GA(pt,gennum,psize)% 输入参数:% pt       m*n的加工时间矩阵(n是工件数目,m是机器数目)由已知给的T矩阵,可得n=100,m=10% gennum   迭代的次数(代数)% psize    种群的规模大小%输出参数:% opy       最优的Makespan值pc=0.9;%交叉因子pm=0.1;%变异因子[m,n]=size(pt);current_gen=1;%current_gen means the current generationnewgen=zeros(psize,n+1); %mewgen is the new generation of the populationnewgen(1:psize,1:n)=rand(psize,n);%主种群初始化,0-1之间的随机数 %Generalize the initial groupfather=zeros(2,n); %father is used to store the two genes for crossover and mutation avgen=zeros(1,gennum); %avgen is the matrix of the average of all the generationsoptimx=zeros(1,n);optimy=ones(1,gennum);%Generalize the initial groupfor i=1:psize    [Ya,pop(i,1:n)]=sort(newgen(i,1:n));%种群排序,实数编码转换为自然数编码 随机生成的0-1之间的小数进行排序然后取每个从小到大数对应的位置    newg
    2022-03-18 14:25:18下载
    积分:1
  • a matrix multiplication code in C Language
    一个矩阵相乘的c语言代码-a matrix multiplication code in C Language
    2022-04-19 17:23:06下载
    积分:1
  • The use of time
    时频分析使用的源代码,希望对大家有用,接着上传!-The use of time-frequency analysis of the source code, in the hope that useful to everybody, and then upload!
    2022-11-04 01:50:02下载
    积分:1
  • Fast Fourier Transform C language source code
    快速傅利叶变换 C 语言源代码-Fast Fourier Transform C language source code
    2022-03-20 14:09:03下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载