Skip to content

Commit

Permalink
Bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
daphne12345 committed Aug 29, 2024
1 parent 344bc12 commit cf2bfaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deepcave/plugins/hyperparameter/ablation_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def process(run: AbstractRun, inputs: Dict[str, Any]) -> Dict[str, Any]:
RuntimeError
If the number of trees is not specified.
"""
objective: Union[Optional[Objective], list[Optional[Objective]], None] = None
objective: Union[Objective, list[Optional[Objective]], None] = None
objective = run.get_objective(inputs["objective_id1"])
if inputs["objective_id2"] not in (None, -1):
objective = [objective, run.get_objective(inputs["objective_id2"])]
Expand Down
2 changes: 1 addition & 1 deletion deepcave/plugins/hyperparameter/importances.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def process(run: AbstractRun, inputs: Dict[str, Any]) -> Dict[str, Any]:
If the number of trees is not specified.
If the method is not found.
"""
objective: Union[Optional[Objective], list[Optional[Objective]], None] = None
objective: Union[Objective, list[Optional[Objective]], None] = None
objective = run.get_objective(inputs["objective_id1"])
if inputs["objective_id2"] not in (None, -1):
objective = [objective, run.get_objective(inputs["objective_id2"])]
Expand Down

0 comments on commit cf2bfaa

Please sign in to comment.