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

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

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

代码说明:

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

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

发表评论

0 个回复

  • 自动提取应力结果保存
    采用Python写的abaqus自动提取应力结果的命令(A command written by Python to automatically extract stress results from ABAQUS)
    2021-03-03 11:59:33下载
    积分:1
  • 图像超分辨率
    说明:  图像超分辨率技术源码; 基于深度学习的图像超分辨率重建的流程如下[2]: 1.首先找到一组原始图像Image1; 2.将这组图片降低分辨率为一组图像Image2 3.通过各种神经网络结构,将Image2超分辨率重建为Image3(Image3和Image1分辨率一样) 4.通过PSNR等方法比较Image1和Image3,验证超分辨率重建的效果,根据效果调节神经网络中的节点和参数 5.反复执行以上直到第4步的结果比较满意(Image super-resolution technology source code; The process of image super-resolution reconstruction based on deep learning is as follows [2]: 1. First find a set of original images image1; 2. Reduce the resolution of this group of pictures to a group of image2 3. Through various neural network structures, the super-resolution of image2 is reconstructed into image3 (the resolution of image3 is the same as that of image1) 4. Compare image1 and image3 by PSNR and other methods to verify the effect of super-resolution reconstruction, and adjust the nodes and parameters of neural network according to the effect 5. Repeat the above until the result of step 4 is satisfactory)
    2020-03-19 14:46:10下载
    积分:1
  • 画多边形
    说明:  画椭圆、矩形,勾勒出所需图形的大小与所在的位置。(Draw an ellipse or rectangle to outline the size and location of the desired graphic.)
    2020-06-17 17:40:02下载
    积分:1
  • Py数据分析jupyter
    说明:  py数据分析numpy, pandas, matplotlib, pyecharts, seaborn...(py data analysis: numpy, pandas, matplotlib, pyecharts, seaborn...)
    2019-01-03 18:35:23下载
    积分:1
  • knn
    说明:  以图像处理和knn算法为基础,利用knn算法,在python开发环境中设计了一个手写数字识别系统,该系统采用28*28的模板对图新分成784块提取手写数字的784个特征,在二值图像数据基础上,通过朴素贝叶斯分类器算法,对0~9这十类手写数字进行学习和分类。(Based on image processing and KNN algorithm, a handwritten digit recognition system is designed in Python development environment by using KNN algorithm. The system uses 28*28 template to divide the graph into 784 blocks to extract 784 features of handwritten digits. On the basis of binary image data, it learns and classifies the ten types of handwritten digits, 0-9, through Naive Bayesian classifier algorithm.)
    2019-04-29 11:06:29下载
    积分:1
  • Scripts
    used by winfof for run it
    2021-01-15 17:28:45下载
    积分:1
  • python 支持向量机算法
    这是python机器学习实战所有相关源代码,包括knn,朴素贝叶斯,支持向量机,决策树,逻辑回归,Apriori算法等, 对应算法都有对应的数据包括训练集和测试集以供测试,各种算法都以函数式的编程模式实现,可以轻松在Spyder打开,在编辑窗口修改,在console窗口运行调试,是机器学习爱好者必备资料。
    2022-03-30 08:57:49下载
    积分:1
  • doban250.py
    说明:  使用Python编写的豆瓣最佳250影片爬虫(Best 250 films of Douban Reptiles)
    2020-06-21 05:40:02下载
    积分:1
  • 模拟退火算法
    说明:  用模拟退火算法来解决经典的旅行商问题,用python语言实现(Using simulated annealing algorithm to solve the classic traveling salesman problem, using Python language to achieve)
    2020-03-08 10:24:02下载
    积分:1
  • Satellite-Segmentation-master
    说明:  利用卷积神经网络对遥感图像进行分类,能够有效提高分类效率(Classification of Remote Sensing Images by Convolutional Neural Network)
    2019-05-24 19:52:22下载
    积分:1
  • 696518资源总数
  • 105949会员总数
  • 22今日下载