Skip to main content
Version: 0.7

metric

superduper.components.metric

Source code

Metric​

Metric(self,
identifier: str,
upstream: Optional[List[ForwardRef('Component')]] = None,
compute_kwargs: Dict = <factory>,
db: dataclasses.InitVar[typing.Optional[ForwardRef('Datalayer')]] = None,
*,
object: Callable) -> None
ParameterDescription
identifierIdentifier of the instance.
upstreamA list of upstream components.
compute_kwargsKeyword arguments to manage the compute environment.
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.