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