"save_model_without_heads" is redundant
#385
by
madhavanvenkatesh
- opened
- 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 |
+
# )
|