
AI
文章平均质量分 70
Yew1168
这个作者很懒,什么都没留下…
展开
-
逻辑回归模型的代价函数对参数的偏导数--推导过程
https://math.stackexchange.com/questions/477207/derivative-of-cost-function-for-logistic-regression/477261#477261https://www.cnblogs.com/Belter/p/6653773.htmlup votedown voteacce转载 2018-01-21 18:29:37 · 1944 阅读 · 0 评论 -
梯度下降(Gradient Descent)小结
在求解机器学习算法的模型参数,即无约束优化问题时,梯度下降(Gradient Descent)是最常采用的方法之一,另一种常用的方法是最小二乘法。这里就对梯度下降法做一个完整的总结。1. 梯度 在微积分里面,对多元函数的参数求∂偏导数,把求得的各个参数的偏导数以向量的形式写出来,就是梯度。比如函数f(x,y), 分别对x,y求偏导数,求得的梯度向量就是(∂f/∂x, ∂f/∂转载 2017-09-16 09:48:23 · 198 阅读 · 0 评论 -
Pytorch及Onnx简单使用
1. samples:Learn the Basics — PyTorch Tutorials 1.10.1+cu102 documentation DCGAN Tutorial — PyTorch Tutorials 1.10.1+cu102 documentation EXPORTING A MODEL FROM PYTORCH TO ONNX examples/super_resolution at master · pytorch/examples (github.com)..原创 2022-01-12 21:17:38 · 1247 阅读 · 1 评论 -
PyTorch出现:RuntimeError: An attempt has been made to start a new process...报错解决
问题:RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase. This probably means that you are not using fork to start your child processes and you ha原创 2022-01-12 20:51:58 · 2661 阅读 · 0 评论 -
Anconda正确使用姿势
1. 下载exeAnaconda | Individual Edition,默认安装,不勾选添加环境变量;2. 创建或yaml导入虚拟环境;3. 使用问题python 启动环境不正确,如在windows环境下,大概是cmd或powershell环境path不对;可使用conda init 初始化;Powershell、CMD添加conda init#可使用anconda 默认cmd进行配置#psconda init powershell#cmdconda in...原创 2022-01-11 17:46:12 · 480 阅读 · 0 评论 -
One-hot,In-place
One-hot在数位电路中被用来表示一种特殊的位元组合,该字节里,仅容许单一位元为1,其他位元都必须为0。之所以称为one-hot就是因为只能有一个1(hot)。若情况相反,只有一个0,其余为1,则称为one-cold[1]。在机器学习里,也有one-hot向量(英语:one-hot vector)的概念。在一任意维度的向量中,仅有一个维度的值是1,其余为0。譬如向量{\displaystyle [0\ 0\ 0\ 0\ 0\ 1\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0]},即为15维空.原创 2022-01-10 14:16:36 · 748 阅读 · 0 评论 -
NN[神经网络]中embedding的dense和sparse是什么意思?
NN[神经网络]中embedding的dense和sparse是什么意思? - 云+社区 - 腾讯云 (tencent.com) dense 表示稠密,在embedding中的dense时: 假设我们有这样一个句子: “北京是北京”,我们将其数值化表示为:dense embedding,需要你讲它转换成onehot表示:假设embedding对输出size=3,也就是hidden层的size=3*3;eg: 那么dense layer的计算过程就是一个矩阵..转载 2022-01-10 14:13:41 · 3204 阅读 · 0 评论 -
双线性插值(Bilinear Interpolation)
双线性插值(Bilinear Interpolation)1. 线性插值已知坐标 (x0,y0) 与 (x1,y1),要得到 [x0,x1] 区间内某一位置x在直线上的值。由于x值已知,所以可以从公式得到 y 的值已知y求x的过程与以上过程相同,只是x与y要进行交换。2.双线性插值(Bilinear Interpolation)在数学上,双线性插值是有两个变量的插值函数的线性插值扩展,其核心思想是在两个方向分别进行一次线性插值。图...转载 2022-01-10 14:11:12 · 286 阅读 · 0 评论 -
AI key point Marks
Convolutional Neural Networks (CNN) (opengenus.org)Convolutional Neural Network(CNN) is an neural network which extracts or identifies a feature in a particular image. This forms one of the most fundamental operations in Machine Learning and is widely u.原创 2021-10-13 22:41:56 · 83 阅读 · 0 评论 -
BF16是为深度学习而优化的新数字格式 预测精度的降低幅度最小
BF16是为深度学习而优化的新数字格式 预测精度的降低幅度最小【转载】描述*********************************************************************************************************************************************************************************************************************转载 2021-03-06 21:44:14 · 2695 阅读 · 0 评论 -
使用vscode开发Python程序:代码静态检查工具pylint及代码格式化工具yapf的配置使用
Pylint由于 Python 插件在 2018.1.0 (Jan. 2018) 版本更新中引入了一项默认设置: // 静态检查时是否使用pylint的最小规则集(minimal set of rules) "python.linting.pylintUseMinimalCheckers": true这一默认设置等价于以下pylint选项:--disable=all --en...转载 2018-12-25 16:12:05 · 4141 阅读 · 0 评论 -
RuntimeError: An attempt has been made to start a new process before the current process...
https://pytorch.org/tutorials/beginner/blitz/cifar10_tutorial.html#sphx-glr-beginner-blitz-cifar10-tutorial-pyimport torchimport torchvisionimport torchvision.transforms as transformsimport matp...原创 2018-12-19 01:21:19 · 20459 阅读 · 9 评论 -
pytorch源码:C拓展
Python C拓展和普通的CPython方式拓展类似,下面主要看pytorch中的拓展模块“_C"的定义和相应其他模块的添加方式。pytorch中的拓展模块定义代码主要在torch/csrc/Module.cpp中,在预备知识中熟悉Python如何拓展C后,直接在Module.cpp找到感兴趣的初始化部分:#if PY_MAJOR_VERSION == 2PyMODINIT_FUNC...转载 2018-12-19 00:30:57 · 521 阅读 · 0 评论 -
AI Questions
1.训练决策树时的参数是什么?2.在决策树的节点处分割的标准是什么?3.基尼系数的公式是什么?4.熵的公式是什么?5.决策树如何决定在哪个特征处分割?6.你如何用数学计算收集来的信息?你确定吗?7.随机森林的优点有哪些?8.介绍一下boosting算法。9.gradient boosting如何工作?10.关于AdaBoost算法,你了解多少?它如何工作?1...转载 2018-12-16 15:23:55 · 151 阅读 · 0 评论 -
Anaconda学习使用
https://conda.io/docs/user-guide/getting-started.htmlhttps://docs.anaconda.com/anaconda/install/windows/install windows (不添加环境变量,使用anaconda开始菜单中的命令行)Choose whether to add Anaconda to your PATH e...转载 2018-12-06 23:52:28 · 1109 阅读 · 0 评论 -
Jupyter 一点点问题
shell程序中 2> /dev/null 代表什么意思?https://www.zhihu.com/question/53295083将标准错误重定向到/dev/null,一个只进不出的地方,忽略错误输出0 —— stdin(标准输入) 1 —— stdout (标准输出) 2 —— stderr (标准错误) /dev/null是一个特殊的设备文件,这个文件接收到的任何...原创 2018-11-25 02:03:02 · 569 阅读 · 0 评论