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

Web Design in a Nutshell

Web Design in a Nutshell

Jennifer Niederst / O'Reilly Media, Inc. / 2006-02-21 / USD 34.99

Are you still designing web sites like it's 1999? If so, you're in for a surprise. Since the last edition of this book appeared five years ago, there has been a major climate change with regard to web......一起来看看 《Web Design in a Nutshell》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

html转js在线工具
html转js在线工具

html转js在线工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换