Skip to content

Conversation

Innixma
Copy link
Contributor

@Innixma Innixma commented Oct 25, 2024

Issue #, if available:

Resolves #4453

Resolves #4771

Description of changes:

  • Stratify regression and quantile tasks via binning when doing cross-validation (such as during bagging)

  • Fix bug in dynamic stacking cross-validation mode where stratification was not being done on binary/multiclass, but was being done on other problem_types (opposite of intention).

  • Added type hints

  • TODO: Benchmark

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Innixma Innixma added enhancement New feature or request module: tabular needs: benchmark Needs benchmark prior to merge labels Oct 25, 2024
@Innixma Innixma added this to the 1.2 Release milestone Oct 25, 2024
Copy link

Job PR-4586-8070c34 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-4586/8070c34/index.html

@Innixma Innixma force-pushed the tabular_stratify_regression branch from 8070c34 to 28e823d Compare January 8, 2025 01:14
@Innixma
Copy link
Contributor Author

Innixma commented Jan 8, 2025

Benchmark results were inconclusive. I'll wait to benchmark this more thoroughly in future. For now I've not enabled the regression stratification by default, but the user can still enable it.

Copy link
Contributor

@suzhoum suzhoum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Left a nit comment on docstring.

"""
Parameters
----------
stratify : bool, default False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we add the first few args in the docstring as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, added

@Innixma Innixma merged commit 078cd8b into autogluon:master Jan 13, 2025
3 of 4 checks passed
@Innixma Innixma deleted the tabular_stratify_regression branch April 16, 2025 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request module: tabular needs: benchmark Needs benchmark prior to merge
Projects
Status: Done
2 participants