Facebook先知为R [英] Facebook Prophet for R

查看:74
本文介绍了Facebook先知为R的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人(或微软)知道微软的R服务器是否可以运行他们最近为R开源的Facebook先知?


如果有的话,是否有人有导游如何设置它以便它在SQL中本地和远程工作?


我是R的新手,刚刚开始使用visual studio R Tools ......


谢谢,


Jim


 

解决方案

嗨吉姆!


是的,你可以!但有几点需要注意:



  • Prophet需要R 3.2.3或更高版本,SQL Server 2016 R服务运行在3.2.2,所以你要么需要升级R版本,或运行SQL Server 2017.当然,如果您想在SQL Server中运行它。如果你有一个相当新的Microsoft R服务器,
    你应该是好的。
  • 你需要从CRAN repo安装Prophet - 由于某种原因,来自MS repo的Prophet包不能正常工作。
  • 在SQL Server中运行Prophet时,日期似乎处理不正确(或者至少输出不正确)。

我有一篇博文它带有代码等,位于:http://www.nielsberglund.com/2017/05/20/facebook-prophet-and-microsoft-r-server/


Niels


Does anyone (or Microsoft) know if Microsoft's R Server can run Facebook's Prophet that they recently open sourced for R? 

If so, does anyone have a guide on how to set it up so that it works both locally and remotely in SQL?

I am new to R and just starting out, using the visual studio R Tools...

Thanks,

Jim

 

解决方案

Hi Jim!

Yes you can! There are a couple of caveats though:

  • Prophet requires R 3.2.3 or above, SQL Server 2016 R Services runs on 3.2.2, so you either need to upgrade the R version, or run SQL Server 2017. That is of course if you want to run it inside SQL Server. If you have a fairly recent Microsoft R Server, you should be good.
  • You need to install Prophet from the CRAN repo - for some reason the Prophet package from MS repo is not working properly.
  • When running Prophet inside SQL Server, dates seem to be handled incorrectly (or at least output incorrectly).

I have a blog-post about it with code etc., at: http://www.nielsberglund.com/2017/05/20/facebook-prophet-and-microsoft-r-server/

Niels


这篇关于Facebook先知为R的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆