Is this a bug? This is working before…
I have a class that compiles a model and im using custom metrics. Now, its not compiling. I’m getting
AttributeError: 'method' object has no attribute '_from_serialized'
Here’s a pseudo code:
def compile(self):
self.model.compile(optimizer = optimizer, loss = self._custom_loss, metrics= [self._custom_metric])
def _custom_metric(self, y_target, y_predicted):
some_val = *some_val
return some_val
I’m looking forward to your response.
Thanks