Skip to content

Commit

Permalink
add one more print for the result
Browse files Browse the repository at this point in the history
  • Loading branch information
namsaraeva committed May 16, 2024
1 parent 4dcaabc commit 80f956f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sparcscore/ml/plmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,12 @@ def configure_optimizers(self):

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)

# accuracy metrics for regression???

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

0 comments on commit 80f956f

Please sign in to comment.