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

Embedding dropout #4

Open
peterjmayhew opened this issue May 10, 2021 · 1 comment
Open

Embedding dropout #4

peterjmayhew opened this issue May 10, 2021 · 1 comment

Comments

@peterjmayhew
Copy link

The following code pos_function.py, line 64
embed_seq_pos = Embedding(self.pos_output_dim,self.pos_input_dim,input_length=self.max_len, dropout=0.2,trainable=self.pos_trainable_param)(input_seq_pos)

Produces the following error message
TypeError: ('Keyword argument not understood:', 'dropout')

Keras API https://keras.io/api/layers/core_layers/embedding/ does not include dropout as an argument.

Please confirm, thanks.
Peter

@irinaguseva
Copy link

Unfortunately, I have also obtained such an error.
The probable way to avoid the error is to omit a dropout argument completely, but I seriously doubt whether it's okay for model training.

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

2 participants