scikit-learn:6. Strategies to scale computationally: bigger data

参考:http://scikit-learn.org/stable/modules/scaling_strategies.html


对于examples、features(或者两者)数量很大的情况,挑战传统的方法要解决两个问题:内存和效率。办法是Out-of-core (or “external memory”) learning。有三种方法可以实现out-of-core,分别是:


1、Streaming instances(流体化实例):

简单说就是,instances是一个一个来的。具体实现不在scikit-learn文档范围。


2、Extracting features:

简单说就是利用different feature extraction methods(翻译之后的文章:http://blog.csdn.net/mmc2015/article/details/46992105)实现大数据提取有用数据,简化内存、提高效率。不细讲。


3、Incremental learning:

all estimators implementing the partial_fit API are candidates。

the ability to learn incrementally from a mini-batch of instances (sometimes called “online learning”) is key to out-of-core learning as it guarantees that at any given time there will be only a small amount of instances in the main memory。

所有实现 partial_fit API 的estimators都可以实现增量学习,包括:


注意:对于分类问题,由于incremental learner可能不知道所有的classes有哪些,所以第一次调用partial_fit时,最好人工设定参数 classes= ,指明所有类别。


4、Examples:

a example of Out-of-core classification of text documents. 通过例子可以更好理解上面的内容。







评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值