上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
摘要: "原文地址:彻底搞懂 python 中文乱码问题 " "参考:http://www.cnblogs.com/huxi/archive/2010/12/05/1897271.html" 前言 曾几何时 Python 中文乱码的问题困扰了我很多很多年,每次出现中文乱码都要去网上搜索答案,虽然解决了当时遇 阅读全文
posted @ 2018-10-02 15:22 默写年华 阅读(669) 评论(0) 推荐(0) 编辑
摘要: Pearson Correlation Coefficient 皮尔逊相关系数 皮尔森相关系数是用来反映两个变量线性相关程度的统计量 样本的简单相关系数一般用r表示,其中n 为样本量, 分别为两个变量的观测值和均值。r描述的是两个变量间线性相关强弱的程度。r的取值在 1与+1之间,若r 0,表明两个 阅读全文
posted @ 2018-09-29 17:07 默写年华 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 特征空间中两个实例点的距离是两个实例点相似程度的反应,其中Lp距离的定义如下: $L_p(x_i,x_j)=(\sum_{l=1}^n{|x_i^{(l)} x_j^{(l)}|^p})^{\frac{1}{p}} (p\geq1)$ \ 当 p = 1 时,称为曼哈顿距离,即: $L_1(x_i, 阅读全文
posted @ 2018-09-28 20:48 默写年华 阅读(1307) 评论(0) 推荐(1) 编辑
摘要: "原题:372. Super Pow" Your task is to calculate ab mod 1337 where a is a positive integer and b is an extremely large positive integer given in the form 阅读全文
posted @ 2018-09-28 10:51 默写年华 阅读(98) 评论(0) 推荐(0) 编辑
摘要: "原题:279. Perfect Squares" Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. 阅读全文
posted @ 2018-09-20 14:32 默写年华 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 两者的功能是一致的,将多维数组降为一维,但是两者的区别是返回拷贝还是返回视图,np.flatten(0返回一份拷贝,对拷贝所做修改不会影响原始矩阵,而np.ravel()返回的是视图,修改时会影响原始矩阵 : axis越小的先变化;'F' axis越大的先变化 其中 order : {‘C’,’F’ 阅读全文
posted @ 2018-09-16 11:43 默写年华 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1. 创建的数组都有一个 属性,它是一个元祖,返回各个维度的维数 2. 二维例子: 可以看到 y 是一个两行三列的矩阵, 表示行数, 表示列数 3. 三维例子: 可以看到x是一个包含了3个两行三列的二维数组的三维数组, 代表包含二维数组的个数, 表示二维数组的行数, 表示二维数组的列数。 总结: 可 阅读全文
posted @ 2018-09-07 11:41 默写年华 阅读(177) 评论(0) 推荐(0) 编辑
摘要: "参考(https://blog.csdn.net/z_x_1996/article/details/73564926)" 阅读全文
posted @ 2018-09-04 21:56 默写年华 阅读(941) 评论(0) 推荐(0) 编辑
摘要: 原题: "47. Permutations II" "46. Permutations" 初级版:46. Given a collection of distinct integers, return all possible permutations. 升级版:47. Given a collec 阅读全文
posted @ 2018-09-03 17:46 默写年华 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1. 切比雪夫不等式 $P(|X−EX|≥ϵ)≤DX/ϵ^2$ 等价的是: $P(|X−EX|1,X2,…,Xn,…是相互独立的随机变量序列,数学期望E(Xi)和方差D(Xi)都存在(i=1,2,…),且D(Xi) 0,有 阅读全文
posted @ 2018-09-02 11:47 默写年华 阅读(45784) 评论(0) 推荐(2) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页