登录
首页 » matlab » knn-MatlabCode

knn-MatlabCode

于 2020-10-04 发布
0 251
下载积分: 1 下载次数: 2

代码说明:

说明:  K近邻算法。(k-Nearest Neighbor,KNN),是一个理论上比较成熟的方法,也是最简单的机器学习算法之一。该方法的思路是:在特征空间中,如果一个样本附近的k个最近(即特征空间中最邻近)样本的大多数属于某一个类别,则该样本也属于这个类别。(K-nearest neighbor algorithm. K-nearest neighbor (KNN) is a mature method in theory and one of the simplest machine learning algorithms. The idea of this method is: in the feature space, if most of the k nearest (i.e. the nearest) samples near a sample belong to a certain category, then the sample also belongs to this category.)

文件列表:

knn\datingTestSet2.txt, 26067 , 2016-02-18
knn\KNN.m, 429 , 2019-11-15
knn\KNNdatgingTest.m, 945 , 2019-11-15
knn, 0 , 2019-11-15

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

发表评论

0 个回复

  • banner图片切换代码
    使用方法: 1、在head区域引入样式表文件css.css 2、在head区域引入jquery-1.11.1.min.js 3、在你的网页中加入<!-- 代码 开始 --><!-- 代码 结束 -->注释区域代码即可。(Usage method: 1, introduce stylesheet file css.css in head area 2, introduce jquery-1.11.1.min.js in the head area. 3, add "!" in your web page -- code start -- > <! - end of code > annotation area code.)
    2018-09-29 08:59:35下载
    积分:1
  • A child sub
    小孩分糖问题的c实现 小孩分糖问题的c实现-A child sub-problems c sugar sugar to achieve a child sub-problems c realization of child sub-problems c sugar to achieve
    2022-03-17 17:12:07下载
    积分:1
  • WeChat-master
    说明:  微信小程序,简称小程序,英文名Mini Program,是一种不需要下载安装即可使用的应用,它实现了应用“触手可及”的梦想,用户扫一扫或搜一下即可打开应用。(Weixin applet, short for "applet", is an application that can be used without downloading and installing. It realizes the dream of "accessible" application. Users can open the application by sweeping or searching.)
    2019-01-14 10:19:06下载
    积分:1
  • 视觉测距
    说明:  利用相似三角形原理来使用单目摄像头测距,使用的语言为python,测试图形为圆形。(Using the principle of similar triangle to use monocular camera for ranging, using Python language, the test figure is circular.)
    2019-03-25 10:44:05下载
    积分:1
  • PyLED-master
    py语言led控制操作代码,第三方工具。(Py language LED control operation code, third-party tools.)
    2019-05-26 20:45:25下载
    积分:1
  • AHB_SRAM
    实现AHB转SRAM接口实现,支持猝发,零等待延迟(Implementation of AHB to SRAM Interface)
    2019-04-28 11:41:48下载
    积分:1
  • C#数字排列组合递归算法实例
    C#数字排列组合递归算法实例,可排列0——N个数字,需要组合的数字在0~5之间,也就是最大支持5位数,速度极快,可输入位数后,点击“计算”按钮体验一下。
    2022-11-12 21:25:03下载
    积分:1
  • pn_eegPLV
    计算EEG数据集的锁相值(PLV)。 % %输入参数: eegData是3D矩阵numChannels x numTimePoints x numTrials srate是EEG数据的采样率filtSpec是用于在期望的感兴趣频带中过滤EEG信号的滤波器规范。 它是一个具有两个字段的结构,顺序和范围。 范围指定频带的限制,例如,对于伽马频带,使用filtSpec.range = [35 45]。 在filtSpec.order中指定FIR滤波器的顺序。 一个有用的经验法则可以包括约4到5个周期的所需信号。 例如,对于以500Hz采样的eeg数据,filtSpec.order = 50对应于100ms并且包含~4个周期的γ波段(40Hz)。(Computes the Phase Locking Value (PLV) for an EEG dataset. % % Input parameters: % eegData is a 3D matrix numChannels x numTimePoints x numTrials % srate is the sampling rate of the EEG data % filtSpec is the filter specification to filter the EEG signal in the % desired frequency band of interest. It is a structure with two % fields, order and range. % Range specifies the limits of the frequency % band, for example, put filtSpec.range = [35 45] for gamma band. % Specify the order of the FIR filter in filtSpec.order. A useful % rule of thumb can be to include about 4 to 5 cycles of the desired % signal. For example, filtSpec.order = 50 for eeg data sampled at % 500 Hz corresponds to 100 ms and contains ~4 cycles of gamma band % (40 Hz).)
    2019-04-23 20:00:42下载
    积分:1
  • 一个简单播放器的教学源码,希望可以供大家学习,未美化!
    一个简单播放器的教学源码,希望可以供大家学习,未美化!-a simple player teaching source hope everyone can learn, not landscaping!
    2022-06-03 12:45:38下载
    积分:1
  • my name is obi and i m from indonesia and tangerang is my city, if you come to i...
    my name is obi and i m from indonesia and tangerang is my city, if you come to indonesia please visit me in tangerang
    2022-06-12 02:49:37下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载