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

infer labels in LabelCountCollector #351

Merged
merged 4 commits into from
Sep 27, 2023

Conversation

ArneBinder
Copy link
Owner

@ArneBinder ArneBinder commented Sep 27, 2023

With this PR, we allow labels = "INFERRED" in which case the labels are inferred from the data. This also adds the parameter label_attribute.

IMPORTANT NOTE: Inferring labels produces wrong results for certain aggregation_functions such as min, mean, and std because documents with zero entries of a certain label are not considered anymore for that label. We remove these from aggregation_functions if labels == "INFERRED", but we can not handle any user defined function (which relies on correct zero values).

@ArneBinder ArneBinder merged commit 131931a into main Sep 27, 2023
6 checks passed
@ArneBinder ArneBinder deleted the infer_labels_for_label_count_collector branch September 27, 2023 12:53
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.

1 participant