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