一、基础知识(1)矩阵乘法 https://blog.csdn.net/weixin_43272781/article/details/82899737 简单的说矩阵就是二维数组,数存在里面,矩阵乘法的规则:A*B=C 其中c[i][j]为A的第i行与B的第j列对应乘积的和,即: 代码: 另一种写法 ...
分类:
其他好文 时间:
2019-01-16 19:24:14
阅读次数:
184
解决的办法是——绕过去,不要用这个库:使用中发现如下代码抛出异常: 调用栈是: 不太清楚究竟为何抛异常,于是注释掉try catch,重新编译链接执行。 看到了如下异常信息: 更换了最新的lapack库,仍然无法解决。 查看visp/modules/core/src/math/matrix/vpMa ...
分类:
其他好文 时间:
2019-01-15 20:32:45
阅读次数:
219
1. itertools.product 进行数据的多种组合 intertools.product(range(0, 1), range(0, 1)) 组合的情况[0, 0], [0, 1], [1, 0], [1, 1] 2. confusion_matrix(test_y, pred_y) # ...
分类:
其他好文 时间:
2019-01-15 14:19:23
阅读次数:
404
import numpy as np import pandas as pd recommond_matrix=np.zeros((3,4)) headers=['用户','食物','评分'] df_rate=pd.read_csv('rate.csv',sep='\s',names=headers... ...
分类:
其他好文 时间:
2019-01-14 17:17:36
阅读次数:
217
mat函数可以将目标数据的类型转换为矩阵(matrix) 输出结果,一个是矩阵,一个是列表 ...
分类:
其他好文 时间:
2019-01-14 11:53:38
阅读次数:
246
一、使用非负最小二乘法 "Non negative matrix factorisation using non negative least squares" 问题 给定一个矩阵$A$,将其分解成两个非负的因子: $$ A_{M \times N} \approx W_{M \times K} \ ...
分类:
其他好文 时间:
2019-01-13 16:06:10
阅读次数:
177
[toc] @description@ 给定一个矩阵。求它的所有子矩阵中本质不同的行的个数之和。 input 第一行,两个正整数 n, m。 第二行,n m 个正整数,第 i 个数表示 A[i/m][i mod m]。 保证 n m include include include using nam ...
分类:
其他好文 时间:
2019-01-13 10:23:15
阅读次数:
216
In my previous post, I introduced various definitions of matrix norms in \(\mathbb{R}^{n \times n}\) based on the corresponding vector norms in \(\mat... ...
分类:
其他好文 时间:
2019-01-12 00:19:18
阅读次数:
120
基于大规模语料的新词发现算法 https://blog.csdn.net/xgjianstart/article/details/52193258 互联网时代的社会语言学:基于SNS的文本数据挖掘 http://www.matrix67.com/blog/archives/5044 ...
分类:
其他好文 时间:
2019-01-11 21:16:33
阅读次数:
213
Two images A and B are given, represented as binary, square matrices of the same size. (A binary matrix has only 0s and 1s as values.) We translate on ...
分类:
其他好文 时间:
2019-01-11 18:03:12
阅读次数:
191