登录
首页 » Python » knn.py

knn.py

于 2018-10-30 发布 文件大小:1KB
0 299
下载积分: 1 下载次数: 0

代码说明:

  kNN算法的核心思想是如果一个样本在特征空间中的k个最相邻的样本中的大多数属于某一个类别,则该样本也属于这个类别,并具有这个类别上样本的特性。该方法在确定分类决策上只依据最邻近的一个或者几个样本的类别来决定待分样本所属的类别。 kNN方法在类别决策时,只与极少量的相邻样本有关。由于kNN方法主要靠周围有限的邻近的样本,而不是靠判别类域的方法来确定所属类别的,因此对于类域的交叉或重叠较多的待分样本集来说,kNN方法较其他方法更为适合。(Basic source application)

文件列表:

knn.py, 1616 , 2018-09-25
__MACOSX, 0 , 2018-10-30
__MACOSX\._knn.py, 266 , 2018-09-25

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

发表评论

0 个回复

  • rcitime__type
    二进制粒子群优化算法pso,主程序:swarmpso m 它包括以下子程序: 1  初始化:swarminit m 2  适应值计算函()
    2017-12-09 12:19:17下载
    积分:1
  • qb神经网络
    从数据库获取车辆在一段时间内的所有行驶记录的相关数据,确定所需数据为GPS经纬度坐标和驾驶时长等,QB模型采用MDF的思想,其基本思想为:通过平均直接翻转距离函数定义两条轨迹之间的距离,两条轨迹需要具有相同的经纬度点数,具有相同点数的轨迹最大的优点是对轨迹距离成对计算,且相同轨迹之间具有更高的分辨率,对于轨迹聚类的结果有一定的优化。(Retrieved from the database cars all over a period of time, record the related data, determine the required data for the GPS latitude and longitude coordinates, and the driving time, QB model by adopting the idea of MDF, its basic idea is: flip directly by the average distance function definition of the distance between two trajectories, two tracks will have the same latitude and longitude points, and has the biggest advantages of the same points of trajectory track distance calculation in pairs, and has higher resolution, between the same trajectory for trajectory clustering results have certain optimization.)
    2020-06-23 08:00:01下载
    积分:1
  • 1595175
    动画演示多种排序算法,包括冒泡排序,选择排序,插入排序,快速排序等,()
    2018-03-13 23:48:48下载
    积分:1
  • speech noise reduction
    使用python实现谱减法对语音的降噪功能,代码包括语音的读取、降噪、输出保存(Spectral subtraction speech noise reduction python code)
    2018-06-27 17:22:04下载
    积分:1
  • mocc3
    说明:  
    2018-02-06 13:33:06下载
    积分:1
  • regress
    一个xgboost实现的回归模型预测,数据集来源于kaggle的taxi竞赛(Regression model prediction based on a xgboost implementation)
    2017-10-13 10:09:42下载
    积分:1
  • k-means-for-iris
    说明:  利用K均值聚类对鸢尾花样本进行聚类的matlab程序,包含源代码、样本数据、聚类结果(The matlab program of clustering iris samples by K-means clustering, including source code, sample data and clustering results)
    2020-10-17 20:27:27下载
    积分:1
  • 带阻尼参的pagerank实现
    资源描述实现基本的pagerank算法,可实现传递阻尼参数和迭代次数。源文件从文件中读取
    2022-09-10 21:45:04下载
    积分:1
  • iqitiallybwindowbserial
    可以用黄金分割和斐波那契算法实现优化,只要改变相应的参数就可以用了(You can use the golden section and the Fibonacci algorithm to optimize, just change the corresponding parameters.)
    2018-09-11 21:57:11下载
    积分:1
  • classification_toolbox
    说明:  多种基本分类训练,包括支持向量机,偏最小二乘,主成分分析和线性分析(A variety of basic classification training, including support vector machine, partial least squares, principal component analysis and linear analysis)
    2020-03-10 11:52:41下载
    积分:1
  • 696516资源总数
  • 106637会员总数
  • 8今日下载