Unable To Import Metric From Tensorflow.keras.metrics
I want to write a custom metric evaluator for which I am following this link. my dummy code is  import tensorflow as tf     from tensorflow import keras      class DummyMetric(kera
Solution 1:
It seems like this was probably left out of an __init__.py and they fixed that in 1.14 I guess. I was able to import it this way:
from tensorflow.python.keras.metricsimportMetricIt is defined in file:
tensorflow/python/keras/metrics.py
Post a Comment for "Unable To Import Metric From Tensorflow.keras.metrics"