How can I access the values of the base classifiers from a stacked ensemble mode? I used StackingClassifier from sklearn.
When I implement this:
model.final_estimator_.decision_function(X_train)
I got this error:
X has 10 features, but LinearRegression is expecting 4 features as input.
I have a stacked ensemble model with:
- Decision tree, linear regression, XGB and MLP as base classifer
- Linear regression as meta classifier
Im just curious how could I access what is passed from the base classifier to the metaclassifier