引入我们回顾一下之前学习的两个算法,Bagging算法中,通过bootstrapping得到不一样的数据,通过这些数据送到一个基本算法之后,得到不同的g,最后对这些g取平均得到G;决策树算法中,通过递归方式建立子树,最终得到一棵完整的树。
这两种算法都有其鲜明的特点,决策树对于不同的数据相对会敏感一些,即其算法的variance很大,而Bagging的特点是通过投票和平均的方式来降低varianc...
分类:
编程语言 时间:
2015-07-26 12:39:46
阅读次数:
1131
题目如下:
If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver Sickles to a Galleon and twenty-nine ...
分类:
其他好文 时间:
2015-07-26 12:39:03
阅读次数:
122
源码:https://github.com/cheesezhe/Coursera-Machine-Learning-Exercise/tree/master/ex5Introduction:In this exercise, you will implement regularized linear...
分类:
系统相关 时间:
2015-07-24 15:40:53
阅读次数:
468
为什么样本方差(sample variance)的分母是 n-1?(補充一句哦,題主問的方差 estimator 通常用 moments 方法估計。如果用的是 ML 方法,請不要多想不是你們想的那樣, 方差的 estimator 的期望一樣是有 bias 的,有興趣的同學可以自己用正態分佈算算看。)...
分类:
其他好文 时间:
2015-07-20 21:04:28
阅读次数:
173
As explained in the Solution tag, the key to solving this problem is to use invariants. We set two pointers:lfor the left andrfor the right. One key i...
分类:
其他好文 时间:
2015-07-19 16:23:24
阅读次数:
94
Kernel PCA 原理和演示主成份(Principal Component Analysis)分析是降维(Dimension Reduction)的重要手段。每一个主成分都是数据在某一个方向上的投影,在不同的方向上这些数据方差Variance的大小由其特征值(eigenvalue)决定。一般我们...
分类:
其他好文 时间:
2015-07-03 18:43:32
阅读次数:
825
变性 VarianceScala的类型系统必须同时解释类层次和多态性。类层次结构可以表达子类关系。在混合OO和多态性时,一个核心问题是:如果T’是T一个子类,Container[T’]应该被看做是Container[T]的子类吗?变性(Variance)注解允许你表达类层次结构和多态类型之间的关系:...
分类:
其他好文 时间:
2015-06-19 16:31:18
阅读次数:
83
多重共线性的概念:模型解释变量之间存在完全线性相关或不完全线性相关关系产生的原因:(1)特征变量之间的内在联系(2)特征变量在时间上有同方向变动的趋势(3)某些变量的滞后检验的方法:(1)相关性分析(2) 方差膨胀因子 ?方差膨胀因子(Variance Inflation Factor,VIF...
分类:
其他好文 时间:
2015-06-12 16:56:43
阅读次数:
169
数据量小,选用 high bias/low variance模型(Naive Bayes),因为low bias/high variance模型(KNN,logistic regression)会overfitNaive Bayes:简单,只需要计数就可以;数据量小时,也适用;如果各因素独立(比如词...
分类:
其他好文 时间:
2015-05-29 13:52:16
阅读次数:
196
use Statistics::Zed;my $zed = Statistics::Zed->new();my $p_value = $zed->p_value(tails => 1, observed => 30, expected => 0, variance => 100);my $z_sco...
分类:
其他好文 时间:
2015-05-21 12:23:13
阅读次数:
200