lamindb.Param¶
- class lamindb.Param¶
Bases:
Registry
,CanValidate
,TracksRun
,TracksUpdates
Parameters of runs & models akin to Feature for datasets.
Attributes¶
- objects Manager¶
- paramvalue_set ReverseManyToOneDescriptor¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
Fields¶
- id BigAutoField¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at DateTimeField¶
Time of creation of record.
- updated_at DateTimeField¶
Time of last update to record.
- name CharField¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- dtype CharField¶
Data type (“number”, “cat”, “int”, “float”, “bool”, “datetime”).
For categorical types, can define from which registry values are sampled, e.g.,
cat[ULabel]
orcat[bionty.CellType]
.
- previous_runs ManyToManyField¶
Sequence of runs that created or updated the record.
Methods¶