Utilities#

class twon_lss.utility.llm.LLM[source]#
__init__(**data)#

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)

Return type:

None

__new__(**kwargs)#
class twon_lss.utility.noise.Noise[source]#

The Noise class generates random floating point numbers from a uniform distribution for multiplicative noise with the following attributes. The neutral value (no noise) is achieved when low = high = 1.0. The class provides methods to generate single random numbers or multiple samples.

low#

Lower boundary for the random number generation (default: 0.8).

Type:

float

high#

Upper boundary for the random number generation (default: 1.2).

Type:

float

__init__(**data)#

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)

Return type:

None

__new__(**kwargs)#