Skip to main content
Version: 0.6

metric

superduper.components.metric

Source code

Metric​

Metric(self,
identifier: str,
upstream: Optional[List[ForwardRef('Component')]] = None,
db: dataclasses.InitVar[typing.Optional[ForwardRef('Datalayer')]] = None,
*,
object: Callable) -> None
ParameterDescription
identifierIdentifier of the instance.
upstreamA list of upstream components.
dbDatalayer instance. Datalayer instance.
objectCallable or an Artifact to be applied to the data.

Metric base object used to evaluate performance on a dataset.

These objects are callable and are applied row-wise to the data, and averaged.