In the era of big data,a large number of algorithms are needed to dig out important information from the chaotic massive data to achieve the commercial value of the data.Python and R language are the mainstream open source programming tools for data mining and algorithmic programming.Python is a Web based,free,lightweight interpretation language and the R language is global popular mathematical statistics software with a powerful algorithm package.We combined with the advantages of two languages and parsed two methods (local and remote) of Python call through the Python call R for mixed programming.With the setup of the R language server on Ali cloud ECS,Python language plays powerful glue function.We achieved the R language Holt-Winters prediction algorithm ECharts web data panel preparation by building Flask Web framework in the local machine.%在大数据时代,需要大量的算法从杂乱无章的海量数据中挖掘出重要的信息,实现数据的商业价值.Python和R语言都是主流的开源编程工具,定位于数据挖掘和算法编制.Python是一种基于Web、免费、轻量级的解释型语言,而R语言是具有强大算法包的全球流行数理统计软件.结合2种语言的优点,通过Python调用R语言进行混合编程,解析Python调用R的本地和远程两种方法.在阿里云ECS上布置R语言服务器,发挥Python语言强大的胶水功能,在本地机搭建Flask Web框架,实现R语言Holt-Winters预测算法的ECharts网页数据面板的编制.
展开▼