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

More than one estimator to select Features from Model #956

Open
bjkal opened this issue Nov 9, 2019 · 0 comments
Open

More than one estimator to select Features from Model #956

bjkal opened this issue Nov 9, 2019 · 0 comments

Comments

@bjkal
Copy link

bjkal commented Nov 9, 2019

I created an own config_dict and my aim was to see which Estimators are choosed by TPOT to select Features from a Model.

Its working, if i choose only one estimator with the corresponding model parameters like that:

'sklearn.feature_selection.SelectFromModel': {
'threshold': np.arange(0, 1.01, 0.05),
'estimator': {
'sklearn.ensemble.ExtraTreesRegressor': {
'n_estimators': [100],
'max_features': np.arange(0.05, 1.01, 0.05)
}

The Problem occurs if i want TPOT to choose between different estimators like that:

'sklearn.feature_selection.SelectFromModel': {
'threshold': np.arange(0, 1.01, 0.05),
'estimator': {
'sklearn.ensemble.ExtraTreesRegressor': {
'n_estimators': [100],
'max_features': np.arange(0.05, 1.01, 0.05)
},
'sklearn.ensemble.RandomForestRegressor':{
},
'sklearn.linear_model.Ridge':{
},
'sklearn.linear_model.LassoCV':{
}
}}

How i have to create/change the dictionary config_dict ?

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

No branches or pull requests

2 participants