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).
With this PR, we allow
labels = "INFERRED"
in which case the labels are inferred from the data. This also adds the parameterlabel_attribute
.IMPORTANT NOTE: Inferring labels produces wrong results for certain
aggregation_functions
such asmin
,mean
, andstd
because documents with zero entries of a certain label are not considered anymore for that label. We remove these fromaggregation_functions
iflabels == "INFERRED"
, but we can not handle any user defined function (which relies on correct zero values).