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

Model variable screening #118

Open
cfkstat opened this issue Jul 11, 2021 · 2 comments
Open

Model variable screening #118

cfkstat opened this issue Jul 11, 2021 · 2 comments
Labels
enhancement New feature or request
Projects
Milestone

Comments

@cfkstat
Copy link

cfkstat commented Jul 11, 2021

How to develop a scorecard that uses lasso or ridge for variable screening to get a model that is more generalizable than a model with a full subset of variables?

@cfkstat
Copy link
Author

cfkstat commented Jul 11, 2021

My guess is to modify the scorecard class parameter Estimator, such as replacing the LogisticRegression with Glmnet, but I'm not sure this will work.

@guillermo-navas-palencia
Copy link
Owner

Hi @cfkstat,

Any class supporting .fit(), .predict() and predict_proba() is suitable to be used as an estimator. The Logistic regression in sklearn supports lasso and ridge regularization via parameter penalty. The problem is that after fitting, there is no function to filter those variables with abs(coefficient) < threshold.

If I understood correctly, what you are proposing would require a function to retrieve estimator support, which it is currently missing.

@guillermo-navas-palencia guillermo-navas-palencia added the enhancement New feature or request label Jul 12, 2021
@guillermo-navas-palencia guillermo-navas-palencia added this to the Backlog milestone Aug 9, 2021
@guillermo-navas-palencia guillermo-navas-palencia modified the milestones: Backlog, v0.12.2 Aug 29, 2021
@guillermo-navas-palencia guillermo-navas-palencia added this to To do in ToDo Sep 30, 2021
@guillermo-navas-palencia guillermo-navas-palencia modified the milestones: v0.12.2, Backlog Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
ToDo
  
To do
Development

No branches or pull requests

2 participants