Skip to content

How to get the classifier with parameters and results of the best models? #1116

Closed
@shabir1

Description

@shabir1

How to get the classifier with parameters and results of the best models?
I set ensemble_size=10 and run the auto sklearn for 1 hour, model.cv_results_ contains 243 rows, 240 shows success status and 3 shows timeout. but when I print model.show_models() it prints only 3 models. How would I know which are those 3 models in cv_results_. I tried to sort cv_results_ on mean_test_score key but the top 3 configs of cv_results__ are not matching with show_models() results. And If I set ensemble_size=10 why I got only 3 models from show_models().
Below are the top 5 configs when sort cv_results_ on mean_test_score.
adaboost is not present in show_models()

mean_test_score mean_fit_time param_classifier:choice rank_test_scores status budgets param_balancing:strategy
0.898388227049755 3.68728971481323 extra_trees 1 Success 0 weighting
0.896986685353889 6.91696286201477 adaboost 2 Success 0 none
0.894183601962158 3.38019490242004 extra_trees 3 Success 0 none
0.893482831114226 3.80625748634338 extra_trees 4 Success 0 weighting
0.893482831114226 3.25829768180847 extra_trees 4 Success 0 none

I have to parse show_models() result manually for getting selected classifier with their parameters or there is some way to parse it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions