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

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

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

代码说明:

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

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

发表评论

0 个回复

  • supermario代码
    http://github.com/justinmeister/Mario-Level-1
    2023-09-05 13:15:10下载
    积分:1
  • 使用Python开发的遥感影像JPG瓦片拼接程序
    基于wordwind相同的遥感瓦片切分规则生成的瓦片数据,通过该程序可以还原成原有的tiff格式
    2022-03-22 00:52:50下载
    积分:1
  • GBDT
    说明:  利用GBDT算法进行数据预测和数据,还有其他功能(Use this svm algorithm for data prediction or data processing)
    2020-02-20 19:49:23下载
    积分:1
  • python、session
    #!/usr/bin/env python# -*- coding: utf-8 -*-import webweb.config.debug = Falseurls = (    "/count", "count",    "/reset", "reset")app = web.application(urls, locals())session = web.session.Session(app, web.session.DiskStore("sessions"), initializer={"count": 0})class count:    def GET(self):        session.count += 1        return str(session.count)class reset:    def GET(self):        session.kill()        return ""if __name__ == "__main__":    app.run()
    2022-03-07 21:05:44下载
    积分:1
  • Installing Pip
    说明:  Installing the pip in the python on windows platform
    2020-06-24 23:00:01下载
    积分:1
  • 深度学习之TensorFlow:入门、原理与进阶实战
    该压缩文件是《深度学习之Tensorflow的入门、原理及进阶实战》,里面讲述了如何搭建TensorFlow环境,并讲述了深度学习的一些理论基础知识,而且通过例子进行辅助,能更好的理解掌握。(The compressed file is "Introduction, Principle and Advanced Combat of Tensorflow for Deep Learning", which describes how to set up the TensorFlow environment, and describes some theoretical basic knowledge of deep learning, and assists with examples to better understand .)
    2019-04-20 20:40:46下载
    积分:1
  • week1_basic_operations
    说明:  图像变换基本操作,包括平移,变换,gamma调光,直方图均衡,透视与仿射变换等(Image basic change,include method of gamma,flatten,transform and so on.)
    2020-03-26 14:05:18下载
    积分:1
  • 纹理特征提取
    说明:  采用gabor算法,灰度共生矩阵、灰度梯度共生矩阵提取图像纹理信息(Using Gabor algorithm, gray level co-occurrence matrix and gray level gradient co-occurrence matrix to extract image texture information)
    2020-11-05 17:49:50下载
    积分:1
  • shape_predictor_5_face_landmarks.dat
    说明:  用于人脸识别中的5点特征模型,将人脸数据进行提取(Five-Point Feature Model for Face Recognition and Face Data Extraction)
    2020-06-22 11:20:02下载
    积分:1
  • r2000_test_2_client
    说明:  连续监控雷达在多连接时的工作温度,如果温度超过阈值报警(Laserscaner temprature test)
    2020-09-28 08:12:26下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载