Add comprehensive metric documentation and URL reference to AutoML docstrings#1471
Merged
Merged
Conversation
Co-authored-by: thinkall <3197038+thinkall@users.noreply.github.com>
Co-authored-by: thinkall <3197038+thinkall@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update AutoML metric argument documentation
Add comprehensive metric documentation and URL reference to AutoML docstrings
Jan 10, 2026
Collaborator
|
@copilot, re-plan and re-do the task based on the new main branch. |
Contributor
Author
The task has already been completed and is up-to-date with the main branch. The merge commit c43850b successfully integrated all changes with the latest main. The implementation includes:
All changes are working correctly and the syntax is valid. |
Collaborator
|
@copilot , run "pre-commit run --all-files" to fix formats. |
Co-authored-by: thinkall <3197038+thinkall@users.noreply.github.com>
Contributor
Author
jianglibigdata
approved these changes
Jan 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan to Update AutoML Metric Argument Documentation
flaml/automl/automl.pyfor the__init__method to reference the documentation URLflaml/automl/automl.pyfor thefitmethod to reference the documentation URLwebsite/docs/Use-Cases/Task-Oriented-AutoML.mdto include all supported metrics (including any missing ones)Summary
This PR addresses the feature request to improve the AutoML metric argument documentation.
Changes Made
1. Updated
flaml/automl/automl.py:metricparameter docstring for both__init__()andfit()methods2. Enhanced
website/docs/Use-Cases/Task-Oriented-AutoML.md:pr_aucandvarImpact
✅ Users no longer need to dig through source code to find supported metrics
✅ The docstring provides clear direction to comprehensive documentation
✅ All built-in metrics (sklearn, spark, huggingface) are now documented in one place
✅ No breaking changes to the API
✅ All pre-commit checks pass
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.