firecrown.parameters.SamplerParameter#
- class firecrown.parameters.SamplerParameter(*, default_value=None, name=None, prefix=None)[source]#
Bases:
objectClass to represent a sampler defined parameter.
- Parameters:
default_value (
None|float) –name (
None|str) –prefix (
None|str) –
Public Methods:
__init__(*[, default_value, name, prefix])Creates a new SamplerParameter instance.
Get the default value of this parameter.
set_fullname(prefix, name)Set the prefix of this parameter.
__hash__()Return the hash of the full name of this parameter.
__eq__(other)Return whether this parameter is equal to another.
- __eq__(other)[source]#
Return whether this parameter is equal to another.
Two SamplerParameter objects are equal if they have the same full name.
- Parameters:
other (
object) –- Return type:
bool
- property fullname: str#
Get the full name of this parameter.
- property name: str#
Get the name of this parameter.
- property prefix: str | None#
Get the prefix of this parameter.