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
Let's play the minesweeper game (Wikipedia, online game)! You are given a 2D char matrix representing the game board. 'M' represents an unrevealed min ...
分类:
其他好文 时间:
2019-01-11 15:58:03
阅读次数:
147
F. Elongated Matrix 题目链接:https://codeforces.com/contest/1102/problem/F 题意: 给出一个n*m的矩阵,现在可以随意交换任意的两行,最后从上到下,从左到右形成一个序列s1,s2.....snm,满足对于任意相邻的两个数,它们差的绝对 ...
分类:
其他好文 时间:
2019-01-10 21:54:12
阅读次数:
285
回归是对一个或多个自变量和因变量之间的关系进行建模,求解的一种统计方法,更多关于回归的内容将在后续总结。本博主要总结如何利用激活函数中Sigmoid函数和梯度下降算法实现Logistic回归分类器对数据进行分类 1. Sigmoid函数 激活函数是对神经网络中某一部分神经元的非线性运算,使得神经网络 ...
分类:
其他好文 时间:
2019-01-10 15:31:23
阅读次数:
206