File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 66import json
77import os
88from dataclasses import asdict , fields
9- from typing import Dict , List
10- from collections import defaultdict
9+ from typing import Dict
1110
1211from oci .data_science .models import (
1312 Metadata ,
@@ -575,7 +574,7 @@ def get_finetuning_default_params(self, model_id: str) -> Dict:
575574 Dict of parameters from the loaded from finetuning config json file. If config information is not available,
576575 then an empty dict is returned.
577576 """
578- default_params = defaultdict ( dict )
577+ default_params = { "params" : {}}
579578 finetuning_config = self .get_finetuning_config (model_id )
580579 config_parameters = finetuning_config .get ("configuration" , UNKNOWN_DICT )
581580 dataclass_fields = {field .name for field in fields (AquaFineTuningParams )}
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ def test_get_finetuning_default_params(self):
262262 # check when config json is not available
263263 self .app .get_finetuning_config = MagicMock (return_value = {})
264264 result = self .app .get_finetuning_default_params (model_id = "test_model_id" )
265- assert result == {}
265+ assert result == {"params" : {} }
266266
267267 @parameterized .expand (
268268 [
You can’t perform that action at this time.
0 commit comments