Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'activations' is not defined #122

Open
leeshien opened this issue Jun 16, 2020 · 2 comments
Open

NameError: name 'activations' is not defined #122

leeshien opened this issue Jun 16, 2020 · 2 comments

Comments

@leeshien
Copy link

leeshien commented Jun 16, 2020

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!

@SimonLaplacing
Copy link

Same errors here...Hope anyone could help!

@vfmh
Copy link

vfmh commented Oct 23, 2020

!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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants