Skip to content

Commit e2e3b72

Browse files
committed
[no-ci] Key assignment in compute_metrics
1 parent 3f4e60d commit e2e3b72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesflow/networks/point_inference_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def compute_metrics(self, x: Tensor, conditions: Tensor = None, stage: str = "tr
125125
for score_key, score in self.scores.items():
126126
score_value = score.score(output[score_key], x)
127127
neg_score += score_value
128-
metrics |= {score_key: score_value}
128+
metrics[score_key] = score_value
129129
neg_score /= len(self.scores)
130130

131131
if stage != "training" and any(self.metrics):

0 commit comments

Comments
 (0)