lamindb.core.HasFeatures¶
- class lamindb.core.HasFeatures¶
Bases:
object
Base class linking features, in particular, for
Artifact
&Collection
.Attributes¶
- features: FeatureManager¶
Feature manager.
- labels: LabelManager¶
Label manager.
Methods¶
- describe(print_types=False)¶
Describe relations of data record.
Examples
>>> ln.Artifact(ln.core.datasets.file_jpg_paradisi05(), description="paradisi05").save() >>> artifact = ln.Artifact.filter(description="paradisi05").one() >>> ln.save(ln.ULabel.from_values(["image", "benchmark", "example"], field="name")) >>> ulabels = ln.ULabel.filter(name__in=["image", "benchmark", "example"]).all() >>> artifact.ulabels.set(ulabels) >>> artifact.describe()
.
- view_lineage(with_children=True)¶
Graph of data flow.
- Return type:
None
Notes
For more info, see use cases: Data lineage.
Examples
>>> collection.view_lineage() >>> artifact.view_lineage()