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

java - How to handle special characters while unmarshalling xml in JAXB -

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -

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