Skip to content

Conversation

@abdulfatir
Copy link
Collaborator

Issue #, if available:

Description of changes: This PR handles the case where predictions are already DatasetDict. Previously, it broke for univariate tasks if the predictionswere alreadyDatasetDict`.

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

@abdulfatir abdulfatir requested a review from shchur June 4, 2025 04:00
@abdulfatir abdulfatir changed the title Handle DatasetDict in _clean_and_validate_predictions Handle DatasetDict in clean_and_validate_predictions Jun 4, 2025
)
else:
predictions = datasets.DatasetDict({self.target_column: _to_dataset(predictions)})
predictions = datasets.DatasetDict({self.target_column: _to_dataset(predictions)})
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you also add a new test case or extend an existing test in https://github.com/autogluon/fev/blob/main/test/test_task.py to ensure that all prediction formats work with both univariate and multivariate tasks?

Copy link
Contributor

Choose a reason for hiding this comment

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

I've added the unit test

@shchur shchur merged commit 5c91f34 into autogluon:main Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants