recurrentshop
recurrentshop copied to clipboard
NameError: name 'activations' is not defined
setup: !git clone https://www.github.com/farizrahman4u/recurrentshop.git %cd recurrentshop !python setup.py install !pip install git+https://github.com/farizrahman4u/seq2seq.git
I got the following error after running this line of code: model = AttentionSeq2Seq(input_dim=n_features, input_length=in_timestep, hidden_dim=300, output_length=n_features, output_dim=n_features, depth=3)
/usr/local/lib/python3.6/dist-packages/seq2seq/models.py in AttentionSeq2Seq(output_dim, output_length, batch_input_shape, batch_size, input_shape, input_length, input_dim, hidden_dim, depth, bidirectional, unroll, stateful, dropout) 258 259 encoder = RecurrentSequential(unroll=unroll, stateful=stateful, --> 260 return_sequences=True) 261 encoder.add(LSTMCell(hidden_dim, batch_input_shape=(shape[0], shape[2]))) 262
/content/recurrentshop/recurrentshop/engine.py in init(self, state_sync, decode, output_length, return_states, readout, readout_activation, teacher_force, state_initializer, **kwargs)
NameError: name 'activations' is not defined
Appreciate if anyone could help!
Same errors here...Hope anyone could help!
!pip install keras==2.2.4
!git clone https://www.github.com/farizrahman4u/recurrentshop.git
%cd recurrentshop
!python setup.py install
!sudo pip install git+https://github.com/farizrahman4u/seq2seq.git