lamindb.core.Data

class lamindb.core.Data

Bases: object

Base class for Artifact & Collection.

Attributes

features FeatureManager

Feature manager (FeatureManager)..

labels LabelManager

Label manager (LabelManager)..

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()