上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 73 下一页
摘要: $\ell_{2,1}$-norm encourages the columns of matrix A to be zeros. For example, we have objective function: 阅读全文
posted @ 2020-06-18 11:28 Picassooo 阅读(358) 评论(0) 推荐(0)
摘要: tic k = 0; for ii = 1:100 k = k + ii; end disp(k); toc 运行结果: 阅读全文
posted @ 2020-06-17 14:47 Picassooo 阅读(645) 评论(0) 推荐(0)
摘要: reshape函数 reshape(X,M,N) or reshape(X,[M,N]) returns the M-by-N matrix whose elements are taken columnwise from X. An error results if X does not have 阅读全文
posted @ 2020-06-17 14:42 Picassooo 阅读(252) 评论(0) 推荐(0)
摘要: 本文摘自张贤达的《矩阵分析与应用》第四章第3节、王书宁等人译的《凸优化》的第三章第1节和第4节 阅读全文
posted @ 2020-06-14 10:48 Picassooo 阅读(5314) 评论(0) 推荐(0)
摘要: 在上一篇博客中,我们介绍了次梯度,本篇博客,我们将用它来求解优化问题。 优化目标函数: $min \frac{1}{2} ||Ax-b||_2^2+\mu ||x||_1$ 已知$A, b$,设定一个$\mu$值,此优化问题表示用数据矩阵$A$的列向量的线性组合去拟合目标向量$b$,并且解向量$x$ 阅读全文
posted @ 2020-06-13 19:20 Picassooo 阅读(2134) 评论(0) 推荐(0)
摘要: 本文摘自张贤达的《矩阵分析与应用》第四章第5节 示例: 上面左图的红线是函数$y=x^2$在点$x=0$的梯度方向,也是唯一的次梯度方向。上面右图的三条红线都是函数$y=|x|$在点$x=0$的次梯度方向。 阅读全文
posted @ 2020-06-13 17:50 Picassooo 阅读(3252) 评论(0) 推荐(0)
摘要: 方法一: import scipy as spy from scipy.sparse import csc_matrix m = 2 n = 3 A = spy.sparse.rand(m, n, density=0.5, format='csc', dtype=None).toarray() pr 阅读全文
posted @ 2020-06-13 15:45 Picassooo 阅读(396) 评论(0) 推荐(0)
摘要: np.ones(shape), np.zeros(shape), np.random.randint(low, high, shape)这里的shape必须用元组或列表形式,例如: np.reshape(shape), 这里的shape可以用元组形式,也可以直接写数字,例如: np.random.r 阅读全文
posted @ 2020-06-12 20:33 Picassooo 阅读(290) 评论(0) 推荐(0)
摘要: 百度百科上对Lipschitz连续的介绍挺不错的:Lipschitz连续 此外,张贤达的《矩阵分析与应用》第四章第4节中也有对Lipschitz连续的介绍: 阅读全文
posted @ 2020-06-11 21:49 Picassooo 阅读(1425) 评论(0) 推荐(0)
摘要: 1 此条目内容摘自物理CPU、CPU核数、逻辑CPU、超线程 基本概念 物理CPU 物理CPU是插在主机上的真实的CPU硬件,在Linux下可以数不同的physical id 来确认主机的物理CPU个数。 核心数 物理CPU下一层概念是核心数,我们常常听到多核处理器,其中的核指的就是核心数。在Lin 阅读全文
posted @ 2020-06-11 20:32 Picassooo 阅读(697) 评论(0) 推荐(0)
上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 73 下一页