transitlos.scoring.parameters¶
Numeric default parameters of the transitLOS scoring formulas (one place for every constant).
REGIONS maps every region key to the same universal parameters; it is kept so that callers passing region= keep working.
UNVALIDATED_REGIONS is empty for the same reason.
RegionParameters(weights=(1.0 / 3, 1.0 / 3, 1.0 / 3), walking_speed_mps=1.3, t_plateau_distance_m=200.0, t0_base_minutes=(lambda: {'bus': 6.6, 'rail': 9.4, 'tram': 14.55})(), k_quality=2.5, p_shape=1.0, h_saturation_minutes=5.0, h_elasticity_p=-0.06581572485740672, h_elasticity_q=0.15634627853115843, v_anchor_kmh=30.0, v_ceiling_bonus=0.15, v_shape_n=2.0, mr_mode=(lambda: {'rail': 1.0, 'tram': 0.894, 'bus': 0.8})(), comfort_scores=(lambda: {'EMPTY': 1.0, 'MANY_SEATS_AVAILABLE': 1.0, 'FEW_SEATS_AVAILABLE': 0.85, 'STANDING_ROOM_ONLY': 0.55, 'CRUSHED_STANDING_ROOM_ONLY': 0.4, 'FULL': 0.0, 'NOT_ACCEPTING_PASSENGERS': 0.0})())
dataclass
¶
Container for the scoring model's default parameters.
Attributes:
| Name | Type | Description |
|---|---|---|
weights |
tuple[float, float, float]
|
(w_mrc, w_v, w_h) weights of |
walking_speed_mps |
float
|
Walking speed, m/s (1.3). |
t_plateau_distance_m |
float
|
Walk distance (m) at or below which |
t0_base_minutes |
dict[str, float]
|
Per-mode base scale (minutes) of |
k_quality |
float
|
Quality coupling |
p_shape |
float
|
Shape exponent |
h_saturation_minutes |
float
|
Headway (min) at or below which |
h_elasticity_p |
float
|
Intercept |
h_elasticity_q |
float
|
Slope |
v_anchor_kmh |
float
|
Speed (km/h) at which |
v_ceiling_bonus |
float
|
Asymptotic ceiling of |
v_shape_n |
float
|
Hill exponent |
mr_mode |
dict[str, float]
|
|
comfort_scores |
dict[str, float]
|
|