Skip to content

Commit bfb971b

Browse files
committed
param_override
1 parent c2ebe44 commit bfb971b

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

syftr/optimization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def run(self) -> optuna.Study:
307307
block.name,
308308
defaults,
309309
)
310-
study_config.search_space.custom_defaults.update(defaults)
310+
study_config.search_space.param_override.update(defaults)
311311

312312
future.result() # Wait for seeding to finish
313313

syftr/studies.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -945,9 +945,9 @@ class SearchSpace(BaseModel):
945945
default_factory=LATSRagAgent,
946946
description="Configuration for the LATS RAG agent.",
947947
)
948-
custom_defaults: ParamDict = Field(
948+
param_override: ParamDict = Field(
949949
default_factory=dict,
950-
description="Override default parameters for the search space.",
950+
description="Override parameters for the search space.",
951951
)
952952

953953
def defaults(self) -> ParamDict:
@@ -1118,8 +1118,7 @@ def sample(self, trial: Trial, parameters: T.List[str] = PARAMETERS) -> ParamDic
11181118
if params["few_shot_enabled"]:
11191119
params.update(**self.few_shot_retriever.defaults())
11201120

1121-
# Use custom defaults to override parameters
1122-
params.update(self.custom_defaults)
1121+
params.update(self.param_override)
11231122

11241123
return params
11251124

0 commit comments

Comments
 (0)