- 博客(15)
- 收藏
- 关注
原创 topK 最大K最小堆,最小K最大堆
# -*- coding: utf-8 -*-__date__ = "2018/5/22"def min_heapify(data, heap_size, i): """ :param data:输入列表 :param i:节点序号 :return:返回最小堆,找topk用最小堆 """ left = 2*i + 1 right = ...
2018-05-22 10:54:41
1551
转载 KD-tree的原理以及构建与查询操作的python实现
http://blog.youkuaiyun.com/yan456jie/article/details/52074141前几天小组讨论会上展示了kd-tree(k-dimension tree),感觉这玩意儿还挺有用的,所以学习了一下它的原理,然后把其中的构建kd-tree以及对应的查询操作实现了一下,现在跟大家分享一下首先说一下什么是kd-tree把不过首先得说一下bst(二叉查找树),递归定义如下:如果...
2018-03-07 11:49:02
496
翻译 PYflann 环境搭建python3
PyFlann 安装方法pip install pyflann按照以下更改代码:https://github.com/primetang/pyflann/issues/1然后可运行以下代码:from pyflann import *import numpy as npdataset = np.array( [[1., 1, 1, 2, 3], [10, 10, 10, 3,...
2018-02-27 15:51:14
1475
翻译 python 搭建cuda运行环境, win10, vs2012
Here is my step-by-step adaptation of Christoph Bussler's directions to Windows 8 64 bit. May also work on windows 7, but I haven't tested it. If you can't find any of the specific package versions, t...
2018-02-09 11:49:24
1357
原创 找到16G数据中最大的五个
## -*- coding: utf-8 -*-" 10 t simulation "__author__ = "chaos"import numpy as npclass Find5max(object): def __init__(self): self.data = [float(0), float(0), float(0), float(0), flo
2017-12-12 20:40:53
259
转载 各领域公开数据集下载
https://zhuanlan.zhihu.com/p/25138563整理了一些网上的免费数据集,分类下载地址如下,希望能节约大家找数据的时间。欢迎数据达人加入QQ群 518881260 交流。金融美国劳工部统计局官方发布数据房地产公司 Zillow 公开美国房地产历史数据沪深股票除权除息、配股增发全量数据,截止
2017-11-16 16:50:56
739
转载 k-means聚类算法python实现
来自:https://www.cnblogs.com/MrLJC/p/4127553.htmlK-means聚类算法算法优缺点:优点:容易实现缺点:可能收敛到局部最小值,在大规模数据集上收敛较慢使用数据类型:数值型数据算法思想k-means算法实际上就是通过计算不同样本间的距离来判断他们的相近关系的,相近的就会放到同一个类
2017-11-14 09:25:18
3239
原创 SKlearn中guassian mixture学习及源码学习(架构)
通过学习sklearn说明中的guasian mixture 的代码学习,深入学习源码, 了解python模块的编写的。代码:import numpy as npimport matplotlib.pyplot as pltfrom matplotlib.colors import LogNorm981scikit-learn user guide, Release 0.18
2017-11-13 16:46:22
3080
1
转载 漫谈 Clustering (5): Hierarchical Clustering
http://blog.pluskid.org/?p=407本文是“漫谈 Clustering 系列”中的第 8 篇,参见本系列的其他文章。系列不小心又拖了好久,其实正儿八经的 blog 也好久没有写了,因为比较忙嘛,不过觉得 Hierarchical Clustering 这个话题我能说的东西应该不多,所以还是先写了吧(我准备这次一个公式都不贴 )。Hierarchical
2017-11-09 14:14:34
472
转载 神经网络和机器学习基础入门分享
网址:忘记了作者:Eastmount 最近在做知识图谱实体对齐和属性对齐中,简单用了下Word2vec谷歌开源代码。Word2vec是一个将单词表征成向量的形式,它可以把文本内容的处理简化为向量空间中的向量运算,计算出向量空间上的相似度,来表示文本语义上的相似度。 Word2vec采用CBOW(Continuous Bag-Of-Wor
2017-11-02 17:05:30
284
转载 视角投影
http://ogldev.atspace.co.uk/www/tutorial12/tutorial12.htmlTutorial 12:Perspective ProjectionBackgroundWe have finally reached the item that represents 3D graphics best - the
2017-10-25 10:27:32
511
转载 三维投影总结:数学原理、投影几何、OpenGL教程、我的方法
http://blog.youkuaiyun.com/wishchin/article/details/15816253 如果要得到pose视图,除非有精密的测量方法,否则进行大量的样本采集时很耗时耗力的。可以采取一些取巧的方法,正如A Survey on Partial of 3d shapes,描述的,可以利用已得到的3D模型,利用投影的方法 (page10-透视投影或者正射投影),
2017-10-23 15:49:05
12974
转载 Article - World, View and Projection Transformation Matrices
http://www.codinglabs.net/article_world_view_projection_matrix.aspxIntroductionIn this article we will try to understand in details one of the core mechanics of any 3D engine, the chai
2017-10-23 12:07:00
445
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人