LogParameters#
- class LogParameters(**kwargs)[source]#
Bases:
ParametersA class that represents parameters with logarithmic transformations.
This class inherits from the
Parametersclass and provides methods to apply logarithmic transformations to the values of the parameters.- Attributes:
- …
Methods
log_transform()
Apply a logarithmic transformation to the values of the parameters.
log_exp_transform()
Apply a logarithmic exponential transformation to the values of the parameters.
- log_transform()[source]#
Apply a logarithmic transformation to the values of the parameters.
This method iterates over the attributes of the object and checks if the attribute has a prior function and is an instance of the Value class. If both conditions are met, the value of the attribute is transformed using the logarithmic transformation function.
- log_inverse_transform()[source]#
Apply a logarithmic exponential transformation to the values of the parameters.
This method iterates over the attributes of the object and checks if they are instances of the
Valueclass. If an attribute is an instance ofValuewith a specified prior, thevalueattribute of that instance is transformed using the logarithmic exponential transformation function. The transformed value is then assigned back to thevalueattribute.- Returns:
- dict:
A dictionary containing the updated attributes of the object.