metric
superduper.components.metric
Metric
​
Metric(self,
identifier: str,
upstream: Optional[List[ForwardRef('Component')]] = None,
db: dataclasses.InitVar[typing.Optional[ForwardRef('Datalayer')]] = None,
*,
object: Callable) -> None
Parameter | Description |
---|---|
identifier | Identifier of the instance. |
upstream | A list of upstream components. |
db | Datalayer instance. Datalayer instance. |
object | Callable 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.