Skip to content

Commit

Permalink
replace the print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
namsaraeva committed May 16, 2024
1 parent 80f956f commit a7210f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sparcscore/ml/plmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,11 @@ def training_step(self, batch):
data, target = batch

output = self.network(data) # Forward pass, only one output
loss = F.mse_loss(output, target) # L2 loss

print("Result is: ", output, target)

loss = F.mse_loss(output, target) # L2 loss

# accuracy metrics for regression???

self.log('loss/train', loss, on_step=False, on_epoch=True, prog_bar=True)
Expand Down

0 comments on commit a7210f5

Please sign in to comment.