|
21 | 21 | LightGBMModel, |
22 | 22 | LinearRegressionModel, |
23 | 23 | SKLearnModel, |
24 | | - XGBModel, |
25 | 24 | ) |
26 | 25 | from darts.tests.conftest import ( |
27 | 26 | GBM_AVAILABLE, |
28 | 27 | LGBM_AVAILABLE, |
29 | | - XGB_AVAILABLE, |
30 | 28 | ) |
31 | 29 | from darts.utils.timeseries_generation import linear_timeseries |
32 | 30 |
|
@@ -162,16 +160,17 @@ class TestShapExplainer: |
162 | 160 | "output_chunk_length": 4, |
163 | 161 | }, |
164 | 162 | }, |
165 | | - { |
166 | | - "model_cls": XGBModel, |
167 | | - "config": { |
168 | | - "lags": 4, |
169 | | - "lags_past_covariates": [-1, -2, -3], |
170 | | - "lags_future_covariates": [0], |
171 | | - "output_chunk_length": 4, |
172 | | - "add_encoders": add_encoders, |
173 | | - }, |
174 | | - }, |
| 163 | + # # TODO: add back test once shap fixes issue https://github.com/shap/shap/issues/4184 |
| 164 | + # { |
| 165 | + # "model_cls": XGBModel, |
| 166 | + # "config": { |
| 167 | + # "lags": 4, |
| 168 | + # "lags_past_covariates": [-1, -2, -3], |
| 169 | + # "lags_future_covariates": [0], |
| 170 | + # "output_chunk_length": 4, |
| 171 | + # "add_encoders": add_encoders, |
| 172 | + # }, |
| 173 | + # }, |
175 | 174 | ], |
176 | 175 | ) |
177 | 176 | def test_gbm_creation(self, model): |
@@ -724,7 +723,8 @@ def test_shap_explanation_object_validity(self): |
724 | 723 | @pytest.mark.parametrize( |
725 | 724 | "config", |
726 | 725 | [(LinearRegressionModel, {})] |
727 | | - + ([(XGBModel, {})] if XGB_AVAILABLE else []) |
| 726 | + # # TODO: add back test once shap fixes issue https://github.com/shap/shap/issues/4184 |
| 727 | + # + ([(XGBModel, {})] if XGB_AVAILABLE else []) |
728 | 728 | + ( |
729 | 729 | [(LightGBMModel, {"likelihood": "quantile", "quantiles": [0.5]})] |
730 | 730 | if LGBM_AVAILABLE |
|
0 commit comments