【发布时间】:2020-07-20 12:33:43
【问题描述】:
我已经建立并训练了人工神经网络模型。现在我想加载重量。我使用了 estimator.load_weights(checkpoint_path)。之后我遇到了错误。
AttributeError: 'KerasRegressor' 对象没有属性 'load_weights'
checkpoint_path 完全可以,因为 checkpoint_path = "training_1/cp.ckpt", checkpoint_dir = os.path.dirname(checkpoint_path) 被成功执行 & estimator = KerasRegressor(build_fn=base_model, epochs=1000, batch_size=10, verbose=1)
【问题讨论】:
标签: python tensorflow keras neural-network