Upload metric.py with huggingface_hub
Browse files29 unmodified lines30313233343435363763 unmodified lines10110210310410510410510610710810911029 unmodified lines)from .operator import __file__ as _from .operators import ( ApplyOperatorsField, ApplyStreamOperatorsField, ApplyValueOperatorsField, FlattenInstances, MergeStreams, SplitByValue,63 unmodified lines register_all_artifacts() self.steps = [ FromPredictionsAndOriginalData(), ApplyValueOperatorsField( value_field="prediction", operators_field="processors", default_operators=["processors.to_string"] ApplyOperatorsField( inputs_fields=["prediction", "references"], operators_field="postprocessors", default_operators=["processors.to_string"], ), SplitByValue(["group"]), ApplyStreamOperatorsField(metric.py+5-3