You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: