Python 集成 R 语言 PyThor

码农软件 · 软件分类 · 其他开发相关 · 2019-10-19 06:14:12

软件介绍

RPy2 可以在 Python 和 R 之间进行交互,让用户可以在 Python 中轻松的使用 R 的封装包。

Python 一般用来进行数据分析,但是许多的包只存在于 R 语言中。所以,在 Python 与 R 中进行互通非常重要。

Pythor 包含使用 RPY2 的方法,还可以编写 R 包的封装。

线性模型的 R 代码示例:

fit <- lm('eruptions ~ waiting', data=faithful_geyser)
predicted <- predict(fit, newdata=tail(faithful_geyser))

使用 Pythor 之后的 Python 代码:

pylm = PYLM()
relationship='eruptions~waiting'
pylm.fit(relationship, faithful_pandas_df)
pylm.predict(faithful_pandas_df.tail(5))

本文地址:https://www.codercto.com/soft/d/17069.html

Creative Selection

Creative Selection

Ken Kocienda / St. Martin's Press / 2018-9-4 / USD 28.99

Hundreds of millions of people use Apple products every day; several thousand work on Apple's campus in Cupertino, California; but only a handful sit at the drawing board. Creative Selection recounts ......一起来看看 《Creative Selection》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具