r package' ks'有Python版本吗?
最近,我想比较两组积分,并找到了r软件包“ KS”。我需要的函数kde.test(基于内核密度的全局两样本比较测试,而不是KS测试)。例如
library(MASS)
data(crabs)
x1 <- crabs[crabs$sp=="B", c(4,6)]
x2 <- crabs[crabs$sp=="O", c(4,6)]
kt <- kde.test(x1=x1, x2=x2)
,但不幸的是,我对R不熟悉,我的大部分工作都是使用Python完成的,因此很难将脚本传输到R。同时,“ KS”(主要是KDE.test)的功能很重要我的工作。有人知道是否有Python版本的“ KS”,还是Python中具有类似功能的包装?
Recently I wanted to compare two sets of points and found the R package 'ks'. The function kde.test (a kernel density based global two-sample comparison test, not KS test) is what I need. For example
library(MASS)
data(crabs)
x1 <- crabs[crabs$sp=="B", c(4,6)]
x2 <- crabs[crabs$sp=="O", c(4,6)]
kt <- kde.test(x1=x1, x2=x2)
But unfortunately I'm not familiar in R and most of my work was done using Python, so it's hard to transfer my scripts to R. At the same time, the function of 'ks' (mainly kde.test) is important to my work. Does anyone know if there's a Python version of 'ks', or if there's a package with similar features in Python?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 scipy> scipy python in Python。
You can use SciPy in Python.