![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
杂
bea_tree
只要不断按着梯度来,最差也可以进入局部最优解
展开
-
Everyone is an adaptive machine.
Everyone is an adaptive machine. Life experiences are the training data. We should learn from them with severe loss functions. A good learning rate method emphasizes the directions rather than a h原创 2017-06-04 21:28:41 · 896 阅读 · 0 评论 -
pybind11 numpy转cv::mat;eigen
python语言灵活易用,但是有时效率较低,c++效率较高,pybind可以较好的结合两者。在c++代码中引入pybind11相关库,pybind可以利用buffer将python中的一些数据类型转化为c++可用的类型。如下代码:#include<iostream>#include<vector>#include<opencv2/core/core.hpp&g...原创 2019-03-19 23:15:56 · 2898 阅读 · 0 评论 -
pybind11 数据交互
pybind提供了较方便的数据交互方式,有很多c++类型可以直接在Python中使用,但是为了使程序更加高效,往往需要手动转换原创 2019-03-22 00:37:22 · 4990 阅读 · 2 评论 -
科普|32位系统为什么只能识别4GB内存
32位系统为什么只能识别4GB内存?这个问题解答之前首先要弄懂几个概念:内存 是我们计算机上的临时储存设备,用来存放程序和程序处理的数据,主存(内存)的读取速度要比我们的硬盘要快的多,原因之一就是我们可以在主存中直接寻址,比机械硬盘这种还需要机械读取的存储方式要快很多。信息存储 我们这里默认信息以二进制存储,单个0或者1储存的信息有限,计算机中以8个bit作为一个小块,即字节(byte)...原创 2019-05-01 00:44:09 · 1758 阅读 · 4 评论 -
优化程序性能
重温csapphttp://www.cs.cmu.edu/afs/cs/academic/class/15213-f15/www/lectures/10-optimization.pdfmoving code out of loop # 一些编译器会帮你做少用乘除 16*x -> x<<4将重复且不会发生改变的函数移除loop如void lower(char...原创 2019-05-18 00:20:46 · 236 阅读 · 0 评论