Skip to content

Commit a4a3372

Browse files
committed
remove lightgbm xgboost
1 parent 8b9b1ac commit a4a3372

6 files changed

Lines changed: 37 additions & 1010 deletions

File tree

DashAI/back/explainability/model_input.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ def as_shap_predictor(model: Any) -> Callable:
2929
object through ``__self__``, so it only does this when handed a *bound
3030
method*, and it assumes the attribute is writable.
3131
32-
That assumption does not hold for every model DashAI ships: the LightGBM
33-
and XGBoost wrappers inherit ``feature_names_in_`` from their upstream
34-
estimator as a read-only ``property``, so the assignment raises
35-
``AttributeError: property 'feature_names_in_' ... has no setter`` and the
36-
explanation fails before it starts.
32+
That assumption does not hold for estimators that expose
33+
``feature_names_in_`` as a read-only ``property`` — a common shape among
34+
third party wrappers — where the assignment raises ``AttributeError:
35+
property 'feature_names_in_' ... has no setter`` and the explanation fails
36+
before it starts.
3737
3838
Handing over a plain closure instead leaves ``__self__`` absent, so SHAP
3939
skips that step entirely — a function is SHAP's primary documented

DashAI/back/initial_components.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@
303303
from DashAI.back.models.scikit_learn.k_neighbors_classifier import KNeighborsClassifier
304304
from DashAI.back.models.scikit_learn.k_neighbors_regression import KNeighborsRegression
305305
from DashAI.back.models.scikit_learn.lasso_regression import LassoRegression
306-
from DashAI.back.models.scikit_learn.lightgbm_classifier import LGBMClassifier
307306
from DashAI.back.models.scikit_learn.linear_regression import LinearRegression
308307
from DashAI.back.models.scikit_learn.linear_svc_classifier import LinearSVCClassifier
309308
from DashAI.back.models.scikit_learn.linearSVR import LinearSVR
@@ -323,7 +322,6 @@
323322
from DashAI.back.models.scikit_learn.tfidf_logreg_text_classification_model import (
324323
TfIdfLogRegTextClassificationModel,
325324
)
326-
from DashAI.back.models.scikit_learn.xgboost_classifier import XGBClassifier
327325

328326
# Optimizers
329327
from DashAI.back.optimizers.hyperopt_optimizer import HyperOptOptimizer
@@ -431,7 +429,6 @@ def get_initial_components():
431429
KNeighborsClassifier,
432430
KNeighborsRegression,
433431
LassoRegression,
434-
LGBMClassifier,
435432
LinearRegression,
436433
LinearSVCClassifier,
437434
LinearSVR,
@@ -487,7 +484,6 @@ def get_initial_components():
487484
SVR,
488485
T5SmallTransformer,
489486
TfIdfLogRegTextClassificationModel,
490-
XGBClassifier,
491487
TongyiZImage,
492488
TongyiZImageTurbo,
493489
XlmRobertaTransformer,

0 commit comments

Comments
 (0)