biogeme.expressions.log_domain_cnl module¶
Numerically safe CNL backend that remains in the log domain.
- class biogeme.expressions.log_domain_cnl.LogDomainLogCrossNested(util, av, nests, choice, mu=None, _log_recommendation=True)[source]¶
Bases:
LogCrossNestedInternal CNL expression using log-sum-exp throughout its JAX kernel.
- Parameters:
util (dict[int, Expression])
av (dict[int, Expression] | None)
nests (NestsForCrossNestedLogit | OldNestsForCrossNestedLogit)
choice (Expression)
mu (Expression | None)
_log_recommendation (bool)