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://codercto.com/soft/d/17069.html

Ordering Disorder

Ordering Disorder

Khoi Vinh / New Riders Press / 2010-12-03 / USD 29.99

The grid has long been an invaluable tool for creating order out of chaos for designers of all kinds—from city planners to architects to typesetters and graphic artists. In recent years, web designers......一起来看看 《Ordering Disorder》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

在线进制转换器
在线进制转换器

各进制数互转换器