NARX PyNeurgen library

后端 未结 1 1932
广开言路
广开言路 2021-02-10 04:27

I am trying to create autoregressive neural network (NARX) in Python. I just could find one library PyNeurgen. But I am not able to find any sample program to use it. To train a

相关标签:
1条回答
  • 2021-02-10 04:46

    check the tutorial: http://pyneurgen.sourceforge.net/tutorial_nn.html and You can find testcase here: https://github.com/katerina7479/pyneurgen/blob/22e25c01469b3967360401196e7cd12dd5b00358/pyneurgen/demo/simple_network_with_graphs.py

    ...
    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()
    
    0 讨论(0)
提交回复
热议问题