Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot_class_regions_for_classifier_subplot #1

Open
grjd opened this issue Mar 7, 2018 · 0 comments
Open

plot_class_regions_for_classifier_subplot #1

grjd opened this issue Mar 7, 2018 · 0 comments

Comments

@grjd
Copy link

grjd commented Mar 7, 2018

Hi I'm getting this error when calling 'plot_class_regions_for_classifier_subplot'
ValueError: Number of features of the model must match the input. Model n_features is 155 and input n_features is 2

clf = GradientBoostingClassifier().fit(X_train, y_train)
fig, subaxes = plt.subplots(1,1, figsize=(6,6))
titleplot='GBDT, default settings'
plot_class_regions_for_classifier_subplot(clf, X_train, y_train, X_test, y_test,titleplot,subaxes)

%%X_train.shape (736, 155), X_test.shape (185, 155), y_train.shape (736,) y_test.shape (185,)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant