码迷,mamicode.com
首页 >  
搜索关键字:confusion matrix    ( 4333个结果
海森(Hessian)矩阵
在图的鞍点位置,?标函数在x轴?向上是局部最小值,但在y轴?向上是局部最?值。假设?个函数的输?为k维向量,输出为标量,那么它的海森矩阵(Hessian matrix)有k个特征值(参?附录中“数学基础”?节)。该函数在梯度为0的位置上可能是局部最小值、局部最?值或者鞍点。 ?当函数的海森矩阵在梯度 ...
分类:其他好文   时间:2019-11-06 15:03:39    阅读次数:251
EM算法的python实现
本文参考自:https://www.jianshu.com/p/154ee3354b59 和 李航博士的《统计学习方法》 1. 2. 创建观测结果数据 输出一下,观察一下结果: 结果: matrix([[0., 0., 1., 1., 1., 1., 0., 1., 0., 1.]]) 3. EM算 ...
分类:编程语言   时间:2019-11-04 11:27:02    阅读次数:82
用一个N点复序列的FFT同时计算两个N点实序列离散傅里叶变换
一、功能 用一个$N$点复序列快速傅立叶变换算法来同时计算两个$N$点实序列的离散傅立叶变换。 二、方法简介 假设$x(n)$与$y(n)$都是长度为$N$的实序列,为计算其离散傅立叶变换$X(k)$与$Y(k)$,我们将$x(n)$与$y(n)$组合成一个复数序列$h(n)$, $$ h(n) = ...
分类:其他好文   时间:2019-11-02 14:13:28    阅读次数:382
93 Fuzzy Qlearning and Dynamic Fuzzy Qlearning
Introduction In the reinforcement learning paradigm, an agent receives from its envrionment a scalar reward value called $reinforcement$. This feedbac ...
分类:其他好文   时间:2019-10-31 21:25:04    阅读次数:74
plt/sns draw histgram
当使用如下代码保存使用 plt.savefig 保存生成的图片时,结果打开生成的图片却是一片空白。 原因 其实产生这个现象的原因很简单:在 plt.show() 后调用了 plt.savefig() ,在 plt.show() 后实际上已经创建了一个新的空白的图片(坐标轴),这时候你再 plt.sa ...
分类:其他好文   时间:2019-10-29 21:59:38    阅读次数:131
378. Kth Smallest Element in a Sorted Matrix
import java.util.* /** * 378. Kth Smallest Element in a Sorted Matrix * https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/descript... ...
分类:其他好文   时间:2019-10-28 00:44:03    阅读次数:96
74. Search a 2D Matrix
/** * 74. Search a 2D Matrix * https://leetcode.com/problems/search-a-2d-matrix/description/ * * Write an efficient algorithm that searches for a valu... ...
分类:其他好文   时间:2019-10-27 01:04:50    阅读次数:93
240. Search a 2D Matrix II
package LeetCode_240 /** * 240. Search a 2D Matrix II * https://leetcode.com/problems/search-a-2d-matrix-ii/description/ * * Write an efficient algori... ...
分类:其他好文   时间:2019-10-27 00:56:21    阅读次数:103
word公式快捷输入
上下标 $R^2$: R^2 $R_1$: R_1 $R_1^2$: R_1^2 或者 R^2_1 ${^2_1}R$: (^2_1)R 分数 $\frac{a}{2}$: a/2 : a/(b+c) \sdiv(d/e +f) : (a/(b+c)) \ldiv (d/e+f) 矩阵 $\cdot ...
分类:其他好文   时间:2019-10-26 21:24:12    阅读次数:124
对二维区域和检索 - 矩阵不可变 超时的改进
暴力法:private int[][] data; public NumMatrix(int[][] matrix) { data = matrix; } public int sumRegion(int row1, int col1, int row2, int col2) { int sum =... ...
分类:其他好文   时间:2019-10-26 15:12:00    阅读次数:67
4333条   上一页 1 ... 42 43 44 45 46 ... 434 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!