Is the “mean_accuracy”: “accuracy” training or validation accuracy? How to change it?
In typical keras usage are: ‘acc’, ‘val_acc’, ‘loss’ and ‘val_loss’.
Hi @Peter_Pirog “accuracy” here is referring to training accuracy. This metric is specified in the model.compile(…) line in the example right before we call model.fit(…).
According to the tensorflow docs, passing in either “accuracy” or “acc” to the metrics field in model.compile should have the same effect.
Thank You for the answers. Do you think is possible to use validation accuracy as metric in tune.run() function? Thank you for info, how to change type of accuracy metric.
I believe Keras automatically tracks validation metrics by just pretending “val” to the metric name. So you would first have to specify “val_accuracy” or “val_acc” in the TuneReportCallback that gets passed into model.fit: TuneReportCallback(“val_accuracy”).
This will cause the validation accuracy to get reported to Tune. And then when you call tune.run, specify this as the metric argument: tune.run(..., metric=“val_accuracy”).