I am trying to create a neural network using the python module nnet-ts. It has a built-in method named TimeSeriesNnet(), which takes two arguments; hidden_layers and activation_functions.
See documentation for this module, as well as example in the README.md:
https://github.com/hawk31/nnet-ts
I am running python version 2.7.13
The nnet-ts module has dependencies to 5 particular packages, which I am listing below together with the current versions I am using:
numpy-1.13.0, pandas-0.20.2, scipy-0.19.0, theano-0.9.0 and keras-2.0.5
Following the example in the README (link above), my code reads as follows:
from nnet_ts import *
neural_net = TimeSeriesNnet(hidden_layers = [7, 3], activation_functions = ['tanh', 'tanh'])
Execution of this code results in a NameError being thrown. Output:
NameError: name 'TimeSeriesNnet' is not defined
My guess is that the reason for this error could have something to do with different module versions, as the code is nearly identical to the example given in the README. Any help is much appreciated.