Skip to content

Competences and selections, create example or a simpler API call #243

@eddiebergman

Description

@eddiebergman

Hello,

I'm using deslib as part of benchmark paper comparing classifier selection by AutoML tools vs MCS tools for which this library is hugely useful. However, I need to get the competences and selections by both DCS and DES methods in deslib. There seems to be no examples for what is exposed as public API features in estimate_competence_from_proba(query, neighbors, probabilities, distances=None) and selection(competences).

Which of these would be the better way to get the competences and selections:

  • Do I use a non-listed API methods of the model to generate the neighbors, probabilities and distances. This would help ensure all values are the same as the DCS/DES model would generate but I am unsure which methods to call for these. My gut however says no if neighbors, probabilities have no defaults parameters.
  • Use sklearn's knn to generate neighbors and distances, manually getting to probabilities of the models. This is a lot easier as a non-experienced user of deslib but could lead to inconsistencies with the DCS/DES model.

I understand it might be low in the priority but an example or a simplified API would be hugely helpful.
If you can point me in the right direction I would be happy to write a pull request with an example or usability improvement!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions