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 -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -