Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/344.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 神经原库_Python_Neural Network_Time Series - Fatal编程技术网

Python 神经原库

Python 神经原库,python,neural-network,time-series,Python,Neural Network,Time Series,我正在尝试用Python创建自回归神经网络(NARX)。我只能找到一个图书馆的肾素。但是我找不到任何使用它的示例程序。使用网络对时间序列进行训练和预测。如果有人可以分享如何使用网络训练和预测时间序列。或者如果NARX还有其他好的库。请查看教程: 您可以在这里找到testcase: 您能否提供一个如何使用NARX训练和推断数据的示例? ... from pyneurgen.recurrent import NARXRecurrent ... # NARXRecurrent input_nod

我正在尝试用Python创建自回归神经网络(NARX)。我只能找到一个图书馆的肾素。但是我找不到任何使用它的示例程序。使用网络对时间序列进行训练和预测。如果有人可以分享如何使用网络训练和预测时间序列。或者如果NARX还有其他好的库。

请查看教程: 您可以在这里找到testcase:


您能否提供一个如何使用NARX训练和推断数据的示例?
...
from pyneurgen.recurrent import NARXRecurrent
...
#   NARXRecurrent
input_nodes = 2
hidden_nodes = 2
output_nodes = 2

output_order = 3
incoming_weight_from_output = .6
input_order = 2
incoming_weight_from_input = .4

net = NeuralNet()
net.init_layers(input_nodes, [hidden_nodes], output_nodes,
    NARXRecurrent(
        output_order,
        incoming_weight_from_output,
        input_order,
        incoming_weight_from_input))

net.randomize_network()