LogitNestSpec#
- settings activitysim.core.configuration.logit.LogitNestSpec#
Bases:
BaseModel
Defines a nest in a nested logit model.
- Fields:
- field alternatives: list[LogitNestSpec | str] [Required]#
The alternatives within this nest.
These can be either the names of elemental alternatives, or LogitNestSpec definitions for more nests, or a mixture of these.
- field coefficient: str | float [Required]#
The named parameter to be used as the logsum coefficient.
If given as a string, this named parameter should appear in the logit models’s COEFFICIENTS file.
- classmethod prefer_float_to_str(coefficient_value)#
Convert string values to float directly if possible.