stock_market_GAN icon indicating copy to clipboard operation
stock_market_GAN copied to clipboard

TypeError: compile() missing 1 required positional argument: 'optimizer'

Open sujanme25 opened this issue 4 years ago • 3 comments

generator = make_generator_model() Giving error please check as below.


TypeError Traceback (most recent call last) in ----> 1 generator = make_generator_model()

in make_generator_model() 27 model = Model(inputs = inputs, outputs = output) 28 #model.compile(loss=generator_loss) ---> 29 model.compile(loss=None, metrics = [mse , mae, mape, rmse, ar]) 30 #model.compile(loss=None, metrics = [mse , mae, mape, rmse]) 31 model.summary()

D:\Anaconda\lib\site-packages\tensorflow\python\training\tracking\base.py in _method_wrapper(self, *args, **kwargs) 455 self._self_setattr_tracking = False # pylint: disable=protected-access 456 try: --> 457 result = method(self, *args, **kwargs) 458 finally: 459 self._self_setattr_tracking = previous_value # pylint: disable=protected-access

TypeError: compile() missing 1 required positional argument: 'optimizer'

sujanme25 avatar Jun 19 '20 12:06 sujanme25