推荐系统 通常分析过去的事务以建立用户和产品之间的联系,这种方法叫做 协同过滤 。 协同过滤有两种形式:隐语义模型(LFM),基于邻域的模型(Neighborhood models)。 本篇文章大部分内容为大神Koren的 "Factorization Meets the Neighborhood: ...
分类:
其他好文 时间:
2018-09-04 20:19:23
阅读次数:
170
The K?P factorization of a positive integer N is to write N as the sum of the P-th power of K positive integers. You are supposed to write a program t ...
分类:
其他好文 时间:
2018-09-04 17:09:08
阅读次数:
177
Numpy 数据类型: ndarray 创建一维的数组: vector = numpy.array([5,10,15,20]) 创建二维的数组: matrix = numpy.array([[5,10,15,20],[15,20,25,30]]) 查看数据的结构: vector.shape (4,) ...
分类:
其他好文 时间:
2018-09-04 00:16:14
阅读次数:
156
This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrix is filled in from the fi ...
分类:
其他好文 时间:
2018-09-02 20:10:21
阅读次数:
171
This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrix is filled in from the fi ...
分类:
其他好文 时间:
2018-09-02 18:38:51
阅读次数:
202
var formData = new FormData($("#form")[0]); $.ajax({ url:'${pageContext.request.contextPath}/manage/matrix/add', type:'post', d... ...
分类:
Web程序 时间:
2018-08-31 15:43:48
阅读次数:
283
Given a 2D matrix , with obstacles. Start from any of the first row, exit from any of the last row. What is the minimum steps? 000001 000100 000000 00 ...
分类:
其他好文 时间:
2018-08-30 10:54:51
阅读次数:
182
那些零元素数目远远多于非零元素数目,并且非零元素的分布没有规律的矩阵称为稀疏矩阵(sparse matrix)。 不同类型的矩阵有不同的压缩方式,比如对角矩阵只存储对角元素即可。要想充分压缩,就要找到数据的特点。 压缩算法也有很多种,如:音频压缩算法、视频压缩算法、通用压缩算法。不同压缩算法有不同的 ...
分类:
其他好文 时间:
2018-08-30 01:58:45
阅读次数:
259
利用matrix的第一行和第一列来记录,第二遍扫描时再根据记录的信息把matrix的元素置0。 ...
分类:
其他好文 时间:
2018-08-30 00:19:27
阅读次数:
168
http://acm.hdu.edu.cn/showproblem.php?pid=6314 题意 对于n*m的方格,每个格子只能涂两种颜色,问至少有A列和B行都为黑色的方案数是多少。 分析 参考https://blog.csdn.net/IcePrincess_1968/article/detai ...
分类:
其他好文 时间:
2018-08-29 21:54:03
阅读次数:
231