Skip to content

Commit 0c2b99d

Browse files
committed
reformat using black
1 parent 22a7b79 commit 0c2b99d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

chebai/loss/bce_weighted.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,14 @@ def set_pos_weight(self, input: torch.Tensor) -> None:
6161
)
6262
complete_labels = torch.concat(
6363
[
64-
torch.stack([
65-
torch.Tensor(row["labels"]) for row in
66-
self.data_extractor.load_processed_data(filename=file_name)
67-
])
64+
torch.stack(
65+
[
66+
torch.Tensor(row["labels"])
67+
for row in self.data_extractor.load_processed_data(
68+
filename=file_name
69+
)
70+
]
71+
)
6872
for file_name in self.data_extractor.processed_file_names
6973
]
7074
)

0 commit comments

Comments
 (0)