Skip to content

Commit

Permalink
Fix some unit tests and bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMeissnerDS committed Oct 14, 2023
1 parent dae68b9 commit a2d97f4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion bluecast/ml_modelling/xgboost.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def autotune(
if (
not self.conf_params_xgboost
or not self.conf_training
or self.experiment_tracker
or not self.experiment_tracker
):
raise ValueError(
"conf_params_xgboost, conf_training or experiment_tracker is None"
Expand Down
1 change: 0 additions & 1 deletion bluecast/tests/test_cast_cv.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def test_blueprint_cv_xgboost(synthetic_train_test_data):
df_val = synthetic_train_test_data[1]
xgboost_param_config = XgboostTuneParamsConfig()
xgboost_param_config.steps_max = 100
xgboost_param_config.num_leaves_max = 16
train_config = TrainingConfig()
train_config.hyperparameter_tuning_rounds = 10

Expand Down
1 change: 0 additions & 1 deletion bluecast/tests/test_shap_explanations.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def test_shap_explanations():
df_val = create_synthetic_dataframe(100, random_state=21)
xgboost_param_config = XgboostTuneParamsConfig()
xgboost_param_config.steps_max = 100
xgboost_param_config.num_leaves_max = 16
train_config = TrainingConfig()
train_config.hyperparameter_tuning_rounds = 10
train_config.enable_feature_selection = False
Expand Down

0 comments on commit a2d97f4

Please sign in to comment.