Skip to content

Commit 4d3ab3a

Browse files
authored
Update
1 parent 3edd41f commit 4d3ab3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def training_step(self,data,idx):
168168

169169
pred_count = self.model(data.x_dict,data.edge_index_dict, emb, size)
170170
loss = self.criterion(pred_count,data["window"]["y"][:,mask])
171-
corrloss = self.correlationMetric(pred_count,data["window"]["y"])
171+
corrloss = self.correlationMetric(pred_count,data["window"]["y"][:,mask])
172172

173173
optimizer.zero_grad()
174174
self.manual_backward(loss + corrloss * 0.5)

0 commit comments

Comments
 (0)