PCA的流程: 代码参考:https://www.cnblogs.com/clnchanpin/p/7199713.html 协方差矩阵的计算 https://docs.scipy.org/doc/numpy/reference/generated/numpy.cov.html 思想: https: ...
分类:
其他好文 时间:
2019-12-28 09:56:21
阅读次数:
86
奇异值分解(Singular Value Decomposition,SVD)是一种重要的矩阵分解(Matrix Decomposition)方法,可以看做对称方正在任意矩阵上的一种推广,该方法在机器学习的中占有重要地位。 首先讲解一下SVD的理论,然后用python实现SVD,并应用于图像压缩。 ...
分类:
其他好文 时间:
2019-12-28 09:29:16
阅读次数:
116
初学蒙特卡洛 center <- c(2.5,2.5) #圓心 radius <- 2.5 #半徑 distancefromcenter <- function(a){ # 點到直线的距离 sqrt(sum((a-center)^2)) } n <- 1000000 A <- matrix(runi ...
分类:
编程语言 时间:
2019-12-27 21:37:56
阅读次数:
100
Matrix in houdini is still just a collection of numbers, the only different is :How you apply this data determines what kind of matrix it is. There is ...
分类:
其他好文 时间:
2019-12-27 18:09:05
阅读次数:
90
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. Example: Input: 1 0 1 0 0 1 0 1 1 1 ...
分类:
其他好文 时间:
2019-12-27 13:47:34
阅读次数:
76
给定一个二维数组,其每一行从左到右递增排序,从上到下也是递增排序。给定一个数,判断这个数是否在该二维数组中。 Consider the following matrix: [ [1, 4, 7, 11, 15], [2, 5, 8, 12, 19], [3, 6, 9, 16, 22], [10, ...
分类:
编程语言 时间:
2019-12-22 16:17:54
阅读次数:
77
accuracy_score分类准确率分数是指所有分类正确的百分比。分类准确率这一衡量分类器的标准比较容易理解,但是它不能告诉你响应值的潜在分布,并且它也不能告诉你分类器犯错的类型。 形式:sklearn.metrics.accuracy_score(y_true, y_pred, normaliz ...
分类:
其他好文 时间:
2019-12-22 13:03:01
阅读次数:
123
Description Given a board which is a 2D matrix includes a-z and dictionary dict, find the largest collection of words on the board, the words can not ...
分类:
其他好文 时间:
2019-12-22 00:39:36
阅读次数:
70
Description Description Given an integer matrix. Find the longest increasing continuous subsequence in this matrix and return the length of it. The lo ...
分类:
其他好文 时间:
2019-12-21 23:04:41
阅读次数:
169
Description Description Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. Example Exam ...
分类:
其他好文 时间:
2019-12-21 22:34:38
阅读次数:
87