Commit
•
de10ab0
1
Parent(s):
22bf20f
"save_model_without_heads" is redundant (#385)
Browse files- "save_model_without_heads" is redundant (e384cc651481232513ac8ebd1fd2169f184e6a19)
Co-authored-by: Madhavan Venkatesh <[email protected]>
- geneformer/mtl_classifier.py +15 -15
geneformer/mtl_classifier.py
CHANGED
@@ -344,18 +344,18 @@ class MTLClassifier:
|
|
344 |
|
345 |
eval_utils.load_and_evaluate_test_model(self.config)
|
346 |
|
347 |
-
def save_model_without_heads(
|
348 |
-
|
349 |
-
):
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
|
|
344 |
|
345 |
eval_utils.load_and_evaluate_test_model(self.config)
|
346 |
|
347 |
+
# def save_model_without_heads(
|
348 |
+
# self,
|
349 |
+
# ):
|
350 |
+
# """
|
351 |
+
# Save previously fine-tuned multi-task model without classification heads.
|
352 |
+
# """
|
353 |
+
|
354 |
+
# required_variable_names = ["model_save_path"]
|
355 |
+
# required_variables = [self.model_save_path]
|
356 |
+
# req_var_dict = dict(zip(required_variable_names, required_variables))
|
357 |
+
# self.validate_additional_options(req_var_dict)
|
358 |
+
|
359 |
+
# utils.save_model_without_heads(
|
360 |
+
# os.path.join(self.model_save_path, "GeneformerMultiTask")
|
361 |
+
# )
|