python 3.x - TypeError: compile() missing 1 required positional argument: 'self' -


what 'self' in model.copmpile try run code python in keras model error

model.compile(loss="binary_crossentropy", optimizer='adam', metrics=['accuracy']) typeerror: compile() missing 1 required positional argument: 'self'

instantiate class , use methods... should this

model().compile()  or  m = model() m.compile() 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -