biogeme.expressions.expm1 module

Arithmetic expressions accepted by Biogeme: expm1

Michel Bierlaire Mon Nov 03 2025, 16:44:14

class biogeme.expressions.expm1.expm1(child)[source]

Bases: UnaryOperator

exponential minus one expression, i.e. eˣ - 1, implemented in a numerically stable way.

Parameters:

child (ExpressionOrNumeric)

deep_flat_copy()[source]

Provides a deep copy of the expression.

Return type:

expm1

get_value()[source]

Evaluates the value of the expression

Returns:

eˣ - 1

Return type:

float

recursive_construct_jax_function(numerically_safe)[source]

Generates a JAX-compatible function for Biogeme-JAX. :rtype: Callable[[Array, Array, Array, Array], array] :return: callable(parameters, one_row, the_draws, the_random_variables)

Parameters:

numerically_safe (bool)

Return type:

Callable[[Array, Array, Array, Array], array]

recursive_construct_pymc_model_builder()[source]

Generates recursively a function for PyMC representation. :rtype: PymcModelBuilderType :return: the expression in TensorVariable format (PyTensor)

Return type:

PymcModelBuilderType