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

Error to run keras_trade.py #3

Open
snowsky opened this issue Oct 5, 2017 · 1 comment
Open

Error to run keras_trade.py #3

snowsky opened this issue Oct 5, 2017 · 1 comment

Comments

@snowsky
Copy link

snowsky commented Oct 5, 2017

Hi there,

When I run the script, I've got this error. Is it the API deprecated? Thanks.

keras_trade.py:346: UserWarning: Update your Dense call to the Keras 2 API: Dense(50, activation="relu", kernel_initializer="uniform", input_shape=(17,))
model.add(Dense(neuro_num,input_shape=(dims,), init='uniform', activation="relu"))
Traceback (most recent call last):
File "keras_trade.py", line 347, in
model.add(BatchNormalization((neuro_num,),input_shape=(dims,)))
File "/usr/local/lib/python2.7/dist-packages/keras/legacy/interfaces.py", line 30, in wrapper
args, kwargs, converted = preprocessor(args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/keras/legacy/interfaces.py", line 440, in batchnorm_args_preprocessor
raise TypeError('The BatchNormalization layer '
TypeError: The BatchNormalization layer does not accept positional arguments. Use keyword arguments instead.

@99thpixel
Copy link

I'm getting the same error.

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