LogParameters#

class LogParameters(**kwargs)[source]#

Bases: Parameters

A class that represents parameters with logarithmic transformations.

This class inherits from the Parameters class 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 Value class. If an attribute is an instance of Value with a specified prior, the value attribute of that instance is transformed using the logarithmic exponential transformation function. The transformed value is then assigned back to the value attribute.

Returns:
dict:

A dictionary containing the updated attributes of the object.

update(log=False, **kwargs)[source]#

Update the parameters with new values.

Parameters:
**kwargsdict

Keyword arguments representing the parameters.

bounds()[source]#

Returns a tuple with lower (first element) and upper (second element) bounds for parameters with defined priors.

Returns:
lower, upper: tuples

A tuple of lower and upper parameter bounds