-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Obtain feature list after ensemble classification #719
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
Comments
Could you please post a fully reproducible example in which you apply the code from issue #524 and it fails? Also, you might have to cast to a numpy array before passing the data to Auto-sklearn. |
Hi @mfeurer Thanks in advance for your valuable time.
But I get AttributeError: 'int' object has no attribute 'scores_' I also tried following the example from @teresaconc
but get AttributeError: 'list' object has no attribute 'models' whereas if I do
I get RuntimeError: scikit-learn estimators should always specify their parameters in the signature of their init (no varargs). <class 'autosklearn.automl.AutoMLRegressor'> with constructor (self, *args, **kwargs) doesn't follow this convention. For ensemble_size = 1 I have the following:
I also tried casting the Panda Dataframe to numPy ( commented out above in the code ) but with the same outcome. I would be grateful if you could point me to accessing the coefficients / feature importance. Thank you, |
During prediction, I get an error as - DataFrame object has no attribute 'dtype' while passing a pandas DataFrame as input. Pandas dataframe has no attribute 'dtype' but has attribute as 'dtypes'. |
We now do have an example showing how to obtain information from the trained pipelines: https://automl.github.io/auto-sklearn/development/examples/example_get_pipeline_components.html This is currently in the development branch only but will be available in the next release. @akshayparanjape we did not test for pandas in the master branch. Please use numpy there. We will support pandas dataframes in the next release. |
Hi together, the previously mentioned example is now available in the master branch and main documentation: https://automl.github.io/auto-sklearn/master/examples/40_advanced/example_get_pipeline_components.html#sphx-glr-examples-40-advanced-example-get-pipeline-components-py Please reopen if this issue is still of interest to you and you need help adapting it to a specific model. |
Uh oh!
There was an error while loading. Please reload this page.
I ran auto-sklearn and obtained a 3 model ensemble for classifying my data. I would like to know which features were selected for the classification for reporting and better understanding of the process.
I already tried the code in: #524, but was not able to obtain feature names (in the column header of my data set).
This is the code I am currently employing for the classification:
What can I add to obtain the desired output?
The text was updated successfully, but these errors were encountered: