【问题标题】:keras tuner AttributeError: module 'tensorflow._api.v1.keras.metrics' has no attribute 'Metric'keras Tuner AttributeError:模块'tensorflow._api.v1.keras.metrics'没有属性'Metric'
【发布时间】:2020-06-23 03:26:10
【问题描述】:

当我使用 keras Tuner 进行调优时,tuner=RandomSearch(hypermodel=model,objective='mse',seed=42,max_trials=3,directory=r'E:\multivariate test\bayes',project_name='helloworld ') 报了一个AttributeError: module'tensorflow._api.v1.keras.metrics' has no attribute 'Metric', error,这个问题怎么解决?

【问题讨论】:

    标签: keras tuner


    【解决方案1】:

    也许您正在使用 TF v tf.keras.metrics.Metric

    【讨论】:

      猜你喜欢
      • 2021-06-09
      • 2021-02-06
      • 2021-08-14
      • 1970-01-01
      • 1970-01-01
      • 2021-11-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多