Skip to content

Commit 1d90c6e

Browse files
committed
fix model instantiation
1 parent f4894f0 commit 1d90c6e

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

chebifier/prediction_models/electra_predictor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def init_model(self, ckpt_path: str, **kwargs) -> "Electra":
5353
map_location=self.device,
5454
criterion=None,
5555
strict=False,
56-
metrics=dict(train=dict(), test=dict(), validation=dict()),
5756
pretrained_checkpoint=None,
5857
)
5958
model.eval()

chebifier/prediction_models/gnn_predictor.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ def init_model(self, ckpt_path: str, **kwargs) -> "ResGatedGraphPred":
6868
map_location=torch.device(self.device),
6969
criterion=None,
7070
strict=False,
71-
metrics=dict(train=dict(), test=dict(), validation=dict()),
72-
pretrained_checkpoint=None,
7371
)
7472
model.eval()
7573
return model
@@ -113,8 +111,6 @@ def init_model(self, ckpt_path: str, **kwargs) -> "GATGraphPred":
113111
map_location=torch.device(self.device),
114112
criterion=None,
115113
strict=False,
116-
metrics=dict(train=dict(), test=dict(), validation=dict()),
117-
pretrained_checkpoint=None,
118114
)
119115
model.eval()
120116
return model

0 commit comments

Comments
 (0)