【发布时间】:2020-11-01 13:44:46
【问题描述】:
根据这个帖子:https://datascience.stackexchange.com/questions/49109/loss-val-loss-are-decreasing-but-accuracies-are-the-same-in-lstm 当我们在Keras 的神经网络训练期间使用metrics='accuracy' 时,幕后发生的事情是:
if metric in ('accuracy', 'acc'):
metric_fn = metrics_module.binary_accuracy
在哪里
def binary_accuracy(y_true, y_pred):
return K.mean(K.equal(y_true, K.round(y_pred)), axis=-1)
在我的模型中,我处理的是连续数据,使用不同的评估函数会更适用。是否可以将此预定义的指标更改为定制的指标?
【问题讨论】:
标签: tensorflow machine-learning keras neural-network