首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在python中使用广义回归神经网络?

如何在python中使用广义回归神经网络?
EN

Stack Overflow用户
提问于 2019-01-16 06:04:05
回答 1查看 1.8K关注 0票数 1

我正在尝试寻找任何使用python实现newgrnn (Generalized Regression Neural Network)的python库或包。

有没有可以使用神经网络进行回归的包或库?我正在尝试寻找与这里描述的newgrnn (Generalized Regression Neural Network)相当的python。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-01-23 06:54:12

我发现这个库很整洁,它解决了我的问题:

代码语言:javascript
运行
复制
from neupy import algorithms
from neupy.algorithms.rbfn.utils import pdf_between_data

grnn = algorithms.GRNN(std=0.003)
grnn.train(X, y)

# In this part of the code you can do any moifications you want
ratios = pdf_between_data(grnn.input_train, X, grnn.std)
predicted = (np.dot(grnn.target_train.T, ratios) / ratios.sum(axis=0)).T

这是该库的链接:http://neupy.com/apidocs/neupy.algorithms.rbfn.grnn.html

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54207540

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档