lamindb.models.FeatureManager¶
- class lamindb.models.FeatureManager(host)¶
Bases:
objectFeature manager.
Attributes¶
Methods¶
- describe(return_str=False)¶
- Return type:
str|None
- get_values()¶
Get feature values as a dictionary.
- Return type:
dict[str,Any]
- add_values(values, feature_field=FieldAttr(Feature.name), schema=None)¶
Curate artifact with features & values.
- Parameters:
values (
dict[str,str|int|float|bool]) – A dictionary of keys (features) & values (labels, numbers, booleans).feature_field (
DeferredAttribute, default:FieldAttr(Feature.name)) – The field of a reference registry to map keys of the dictionary.schema (
Schema, default:None) – Schema to validate against.
- Return type:
None