1. 拉普拉斯算子 1.1 简介 一种典型的各向同性的微分算子,可用于检测图像中灰度图片的区域 $$ \nabla^{2} f=\frac{\partial^{2} f}{\partial x^{2}}+\frac{\partial^{2} f}{\partial y^{2}} $$ 根据上述的差分 ...
分类:
编程语言 时间:
2019-09-06 22:47:14
阅读次数:
406
默认的浅灰色的分割线在某些时候并不能满足我们的要求,这时就需要自定义一条分割线了。 需要调用setDrawable(@NonNull Drawable drawable)方法,然后传入一个Drawable函数对象就可以了。 现在可以用shape来编写一个分割线样式: 添加分割线的代码改为如下: 运行 ...
分类:
其他好文 时间:
2019-09-05 14:06:47
阅读次数:
99
1. Numpy NumPy(Numerical Python) 是 Python 语言的一个扩展程序库,支持大量的维度数组与矩阵运算,此外也针对数组运算提供大量的数学函数库。 1.1 创建 ndarray 1. 使用np.array()创建 numpy默认ndarray的所有元素的类型是相同的 如 ...
分类:
其他好文 时间:
2019-09-04 17:44:13
阅读次数:
137
梯度的实现: 梯度下降法的实现: 神经网络的梯度 下面,我们以一个简单的神经网络为例,来实现求梯度的代码: 学习算法的实现: 前提 神经网络存在合适的权重和偏置,调整权重和偏置以便拟合训练数据的过程称为“学习”。神经网络的学习分成下面 4 个步骤。 步骤 1(mini-batch) 从训练数据中随机 ...
分类:
编程语言 时间:
2019-09-02 13:45:39
阅读次数:
140
上一篇我写了如何给自己的图像集制作tfrecords文件,现在我们就来讲讲如何读取已经创建好的文件,我们使用的是Tensorflow中的Dataset来读取我们的tfrecords,网上很多帖子应该是很久之前的了,绝大多数的做法是,先将tfrecords序列化成一个队列,然后使用TFRecordRe ...
分类:
其他好文 时间:
2019-09-02 09:24:22
阅读次数:
80
版权所有,转帖注明出处 章节SciKit Learn 加载数据集 SciKit Learn 数据集基本信息 SciKit Learn 使用matplotlib可视化数据 SciKit Learn 可视化数据:主成分分析(PCA) SciKit Learn 预处理数据 SciKit Learn K均值 ...
分类:
其他好文 时间:
2019-09-02 09:19:41
阅读次数:
102
Description: You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the ...
分类:
其他好文 时间:
2019-08-29 18:41:33
阅读次数:
142
运行demo报错 ValueError: Shape must be rank 1 but is rank 0 for 'bn_conv1/cond/Reshape_4' (op: 'Reshape') with input shapes: [1,64,1,1], []. 经过查阅,发现是Batch ...
分类:
其他好文 时间:
2019-08-27 18:57:32
阅读次数:
265
A number of rectangular posters, photographs and other pictures of the same shape are pasted on a wall. Their sides are all vertical or horizontal. Ea ...
分类:
其他好文 时间:
2019-08-27 18:51:33
阅读次数:
89
近期用python连接ArcGIS时,需要通过readshapefile函数读取shp文件,读取过程中经常出现 报错为 “ readshapefile can only handle 2D shape types ” 原因时shp文件在创建时包含了Z坐标及M坐标,如下图所示 于此,需要先将图层中的s ...
分类:
其他好文 时间:
2019-08-27 10:46:43
阅读次数:
669