Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add multilabel classification to validation #445

Merged
merged 2 commits into from
Jul 12, 2023

Conversation

Tyrest
Copy link
Contributor

@Tyrest Tyrest commented Jul 11, 2023

No description provided.

@Tyrest Tyrest requested a review from rajasbansal July 11, 2023 19:08
src/autolabel/data_loaders/validation.py Outdated Show resolved Hide resolved
try:
seed_labels = eval(value)
if not isinstance(seed_labels, list):
raise
Copy link
Contributor

Choose a reason for hiding this comment

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

trying to understand how the empty raise works - from what i read it means that it raises the last exception that was handled. Given we are not in an except clause here, what would an empty raise mean here?
I would suggest raising a ValueError just for readability

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was just copying the other validation functions but it makes more sense to raise a ValueError here so I'll add that now.

Copy link
Contributor

@rajasbansal rajasbansal left a comment

Choose a reason for hiding this comment

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

lgtm

@Tyrest Tyrest merged commit 89fcc08 into main Jul 12, 2023
@Tyrest Tyrest deleted the multilabel-classification-validation branch July 12, 2023 18:02
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