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

AutoSklearnClassifier vs AutoSklearn2Classifier (parameters): "scoring_functions" and "initial_configurations_via_metalearning" #1050

Closed
guilhermefarto opened this issue Jan 4, 2021 · 2 comments
Assignees
Labels
enhancement A new improvement or feature

Comments

@guilhermefarto
Copy link

Good afternoon.

I'm implementing a project that compares traditional Machine Learnind and AutoML-based metrics.

I verified that there are parameters (arguments) that exist in AutoSklearnClassifier, but that do not exist in the implementation of AutoSklearn2Classifier.

One of the most important parameters that I use is "scoring_functions", which allows me to pass a list of objects of the Scorer type so that, when returning from the fit method, I can analyze the results of the evaluated metrics.

How can I make use of the "scoring_functions" and initial_configurations_via_metalearning parameters when implementing AutoSklearn2Classifier?

Why don't we have the same AutoSklearnClassifier parameters available in AutoSklearn2Classifier (at least the parameters linked to metrics)?

AutoSklearnClassifier

  estimator_ensemble1 = AutoSklearnClassifier(
    seed=42,
    ensemble_size=1, ensemble_nbest=50,
    **initial_configurations_via_metalearning=0,**
    time_left_for_this_task=60*MINUTES,
    per_run_time_limit=round((60*MINUTES)/10),
    memory_limit=10240, # 3072
    n_jobs=n_jobs,
    resampling_strategy='cv', resampling_strategy_arguments={'folds': cv},
    **scoring_functions=scoring_functions_classifier,**
    metric=refit_scorer_classifier,
    disable_evaluator_output=False)

AutoSklearn2Classifier

  estimator_ensemble1 = AutoSklearn2Classifier(
    seed=42,
    ensemble_size=1, ensemble_nbest=50,
    time_left_for_this_task=60*MINUTES,
    memory_limit=10240, # 3072
    n_jobs=n_jobs,
    metric=refit_scorer_classifier,
    disable_evaluator_output=False)

Thanks

@mfeurer
Copy link
Contributor

mfeurer commented Jan 5, 2021

Hi @guilhermefarto, Thanks a lot for raising this issue.

Why don't we have the same AutoSklearnClassifier parameters available in AutoSklearn2Classifier (at least the parameters linked to metrics)?

Some of these are automatically set by the AutoSklearn2Classifier based on the dataset characteristics, such as the resampling strategy and the meta-learning.

The scoring functions was an oversight when implementing this new feature, they should be available to the AutoSklearn2Classifier as well. Would you like to create a PR to add them?

@franchuterivera franchuterivera self-assigned this Feb 17, 2021
@franchuterivera franchuterivera added the enhancement A new improvement or feature label Feb 17, 2021
@mfeurer
Copy link
Contributor

mfeurer commented Feb 24, 2021

This was fixed via #1084 and will be available in the next release. Thank you very much for reporting this @guilhermefarto.

@mfeurer mfeurer closed this as completed Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new improvement or feature
Projects
None yet
Development

No branches or pull requests

3 participants