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

Using decision boundary display to plot the relationship between any 2 features if model is fitted to more than 2 features #29017

Open
ETTAN93 opened this issue May 14, 2024 · 2 comments

Comments

@ETTAN93
Copy link

ETTAN93 commented May 14, 2024

Describe the workflow you want to enable

Currently, it seems like it is not possible to pass in a model that has been fitted to more than 2 features to the DecisionBoundaryDisplay.from_estimator method. Is it possible to allow that while only passing in the 2 features you are interested in looking at the relationship for?

Describe your proposed solution

Allowing users to use decision boundary display to plot the relationship between any 2 features in a model that is fitted for more than 2 features.

Describe alternatives you've considered, if relevant

No response

Additional context

No response

@ETTAN93 ETTAN93 added Needs Triage Issue requires triage New Feature labels May 14, 2024
@glemaitre
Copy link
Member

Is the 2D partial dependence not better suited for your analysis?

@glemaitre glemaitre removed the Needs Triage Issue requires triage label May 16, 2024
@SuperG8571
Copy link

For example, when I have trained a support vector machine on the Iris dataset utilizing all 4 features, I want to display the decision boundary in a figure. However, the DecisionBoundaryDisplay.from_estimator method accepts 2 features at most. So if there is a method to project high dimensional models onto lower dimensional spaces instead of training new models. In my opinion, we may select the first 2 features from the 4 for calculation.
Additionally, it is puzzled to segment low dimensional points based on high dimensional surfaces. Because we need select a cross section to form a curve, then segment the points based on the curve. It is worth noting that the projection of a surface is a curve on the X, Y, Z plane is incorrect.
Therefore, is there any good way to display a model with more than 2 features?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs decision
Development

No branches or pull requests

3 participants