Skip to content

Manually setting the validation set for multi-output task #1503

Description

@thinkall

Pull request overview

This pull request adds support for manually setting a validation set for multi-output tasks when using the "holdout" evaluation method. Previously, users could not manually specify a validation set for multi-output regression tasks. The new multioutput_train_size parameter allows users to concatenate training and validation data and specify where to split them.

Changes:

  • Added multioutput_train_size parameter to AutoML class for manual validation set specification
  • Implemented _train_val_split method to split concatenated training/validation data
  • Added test case demonstrating the new functionality with MultiOutputRegressor

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
flaml/automl/automl.py Added documentation and implementation for the multioutput_train_size parameter, including the split logic in the fit method
test/automl/test_regression.py Added test_multioutput_train_size function to demonstrate usage of the new feature

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Originally posted by @Copilot in #1302 (review)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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