train log rename

This commit is contained in:
shahules786 2022-10-12 17:57:42 +05:30
parent 226758e91f
commit ad56a160e4
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ class Model(pl.LightningModule):
loss = self.loss(prediction, target) loss = self.loss(prediction, target)
self.log( self.log(
"train_loss", f"train_{self.loss.name}",
loss.item(), loss.item(),
on_epoch=True, on_epoch=True,
on_step=True, on_step=True,
@ -175,7 +175,7 @@ class Model(pl.LightningModule):
for metric in self.metric: for metric in self.metric:
value = metric(target, prediction) value = metric(target, prediction)
metric_dict[metric.name] = value metric_dict[f"test_{metric.name}"] = value
self.log_dict( self.log_dict(
metric_dict, metric_dict,