请选择 进入手机版 | 继续访问电脑版
楼主: jgchen1966
2798 9

[程序分享] 提高程序运行速度达五倍以上的package ,future [推广有奖]

  • 6关注
  • 29粉丝

院士

54%

还不是VIP/贵宾

-

威望
0
论坛币
1169 个
通用积分
1821.8754
学术水平
102 点
热心指数
134 点
信用等级
73 点
经验
22025 点
帖子
3984
精华
0
在线时间
3998 小时
注册时间
2004-10-19
最后登录
2024-3-29

jgchen1966 发表于 2018-6-4 19:41:25 |显示全部楼层 |坛友微信交流群

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
         一句程序运行了二个半小时,又无法用常用平行方法,如foreach,parallel等 package提供的 ,很郁闷,但随后找到了package future ,仅用不到半小时即可,向大家推荐 。。

    future: Unified Parallel and Distributed Processing in R for Everyone

The purpose of this package is to provide a lightweight and unified Future API for sequential and parallel processing of R expression via futures. The simplest way to evaluate an expression in parallel is to use 'x %<-% { expression }' with 'plan(multiprocess)'. This package implements sequential, multicore, multisession, and cluster futures. With these, R expressions can be evaluated on the local machine, in parallel a set of local machines, or distributed on a mix of local and remote machines. Extensions to this package implement additional backends for processing futures via compute cluster schedulers etc. Because of its unified API, there is no need to modify any code in order switch from sequential on the local machine to, say, distributed processing on a remote compute cluster. Another strength of this package is that global variables and functions are automatically identified and exported as needed, making it straightforward to tweak existing code to make use of futures.

  Reference manual:        future.pdf
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:程序运行 半小时

已有 2 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
刘彦楼 + 100 + 5 + 5 精彩帖子
cheetahfly + 30 + 1 + 1 精彩帖子

总评分: 经验 + 100  论坛币 + 30  学术水平 + 1  热心指数 + 6  信用等级 + 5   查看全部评分

鹑居鷇食,鸟行无彰
yangming98 发表于 2018-6-4 22:07:47 来自手机 |显示全部楼层 |坛友微信交流群
jgchen1966 发表于 2018-6-4 19:41
一句程序运行了二个半小时,又无法用常用平行方法,如foreach,parallel等 package提供的 ,很郁闷 ...
好的好的好的好的好的

使用道具

zhangok 发表于 2018-6-4 22:22:40 |显示全部楼层 |坛友微信交流群
第一次听闻此软件包,谢谢分享!

使用道具

hifinecon 发表于 2018-6-4 23:20:30 |显示全部楼层 |坛友微信交流群
good package but need some time to study it, thanks!

使用道具

Tony_Liu 在职认证  发表于 2018-6-5 09:15:44 |显示全部楼层 |坛友微信交流群
看看 谢谢

使用道具

jgchen1966 发表于 2018-6-5 12:28:32 |显示全部楼层 |坛友微信交流群
hifinecon 发表于 2018-6-4 23:20
good package but need some time to study it, thanks!
学完500至1000个package,并多次练习后,再学习新的package ,就很快了,主要是“阅读”了,读完说明及相关文献,对一些实例做做练习,体会到pacgage核心精神,也就会了。。达此程序,任何一个新package的达到精熟,也就三个间隔至少一周的 5-10小时吧!!

使用道具

jgchen1966 发表于 2018-6-5 12:29:32 |显示全部楼层 |坛友微信交流群
jgchen1966 发表于 2018-6-5 12:28
学完500至1000个package,并多次练习后,再学习新的package ,就很快了,主要是“阅读”了,读完说明及相 ...
学完500至1000个package,并多次练习后,再学习新的package ,就很快了,主要是“阅读”了,读完说明及相关文献,对一些实例做做练习,体会到pacgage核心精神,也就会了。。达此学习程度,任何一个新package的达到精熟,也就三个间隔至少一周的 5-10小时吧!!

使用道具

亲 我在用R做迭代的时候时间也很长,不知道你推荐的这个包能不能缩短这个方面的时间呢?R新手 谢谢啦!

使用道具

yangming98 发表于 2019-2-24 20:04:15 来自手机 |显示全部楼层 |坛友微信交流群
jgchen1966 发表于 2018-6-4 19:41
一句程序运行了二个半小时,又无法用常用平行方法,如foreach,parallel等 package提供的 ,很郁闷 ...
有用吗

使用道具

jgchen1966 发表于 2019-2-26 15:59:42 |显示全部楼层 |坛友微信交流群
yangming98 发表于 2019-2-24 20:04
有用吗
有用没用,试试,就知了??
不试,想破头,也没啥子用!!

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-3-29 14:14