Skip to content

[Feature Request]: Update AutoML metric argument documentation #1393

@bl3e967

Description

@bl3e967

Is your feature request related to a problem? Please describe.

The AutoML instance argument metric documentation is currently:

metric - A string of the metric name or a function, e.g., 'accuracy', 'roc_auc', 'roc_auc_ovr', 'roc_auc_ovo', 'roc_auc_weighted', 'roc_auc_ovo_weighted', 'roc_auc_ovr_weighted', 'f1', 'micro_f1', 'macro_f1', 'log_loss', 'mae', 'mse', 'r2', 'mape'. Default is 'auto'. If passing a customized metric function, the function needs to have the following input arguments:

where it lists examples of metrics that are supported, but doesn't provide a full list of all metrics.

This forces a user to trawl through the AutoML source code to verify whether that metric is supported in the first place.

An SDK that forces a user to manually go through its underlying source code is undesirable.

Describe the solution you'd like

  • The docstring for the metric argument should provide the full list of supported metric values.
  • If this is too verbose, then in the very least it should contain a url link to some page where the full list can be found.

If this is already documented somewhere, then it should be made much more obvious to someone reading the docs via the two methods above.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions