Skip to content

Commit 78193d0

Browse files
committed
refactor(models): Remove unused local global_params variable
Removed the unused local assignment `global_params = global_parameters` from the `__init__` method of `GradientBoostingClassifierClass`, `H2OAutoMLClass`, and `LightGBMClassifierWrapper`. This variable was redundant as the `global_parameters` singleton can be accessed directly where needed. This change cleans up the code without affecting functionality.
1 parent 25495c8 commit 78193d0

3 files changed

Lines changed: 0 additions & 4 deletions

File tree

ml_grid/model_classes/gradientboosting_classifier_class.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def __init__(
3939
ValueError: If `parameter_space_size` is not a valid key (though current
4040
implementation does not explicitly raise this).
4141
"""
42-
global_params = global_parameters
4342
self.X: Optional[pd.DataFrame] = X
4443
self.y: Optional[pd.Series] = y
4544

ml_grid/model_classes/h2o_classifier_class.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def __init__(
4646
ValueError: If `parameter_space_size` is not a valid key (though current
4747
implementation does not explicitly raise this).
4848
"""
49-
global_params = global_parameters
5049
logger.debug("Initializing H2OAutoMLClass")
5150

5251
self.algorithm_implementation = H2OAutoMLClassifier()

ml_grid/model_classes/light_gbm_class.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ def __init__(
3636
self.X = X
3737
self.y = y
3838

39-
global_params = global_parameters
40-
4139
self.algorithm_implementation = (
4240
LightGBMClassifier()
4341
) # Custom scikit-learn wrapper

0 commit comments

Comments
 (0)