Skip to content

feat: better location model diagnostics#8

Merged
asiripanich merged 31 commits intomainfrom
better-location-model-outputs
Mar 2, 2025
Merged

feat: better location model diagnostics#8
asiripanich merged 31 commits intomainfrom
better-location-model-outputs

Conversation

@asiripanich
Copy link
Copy Markdown
Owner

@asiripanich asiripanich commented Feb 25, 2025

How to Use This New Feature

The location model diagnostic requires users to modify the MODELS global variable in the dashboard script. This is because each ActivitySim implementation can have different field names for elements such as the distance column in the skims table.

A YAML setting file that will allow users to specify their specific MODELS is in the plan. :)

Consequently, new fields — skims_variable, land_use_control_variable, and origin_zone_variable — have been added to the location model

  • skims_variable refers to the field in the skims table that will be used for generating the distance distribution
  • land_use_control_variable refers to the field in the land use table that will be used for generating the differences-to-land-use plot. In the case of the school location model, you might use a field representing the total enrollment in that zone.
  • origin_zone_variable refers to the zone column that will be used to merge with the origin column of the skims table.
 "school_location": {
                "table": "persons",
                "result_field": "school_zone_id",
                "filter_expr": pl.col("school_zone_id") > 0,
                "skims_variable": "DIST",
                "land_use_control_variable": "COLLFTE",
                "origin_zone_variable": "home_zone_id",
            },

New plots

image

image

Other changes

  • New summary table style
    • image
  • New column select UI
    • image

@asiripanich asiripanich added the enhancement New feature or request label Feb 25, 2025
@asiripanich asiripanich changed the title feat: better location model outputs feat: better location model diagnostics Feb 26, 2025
…tats per zone.

- display as a vstack under its plot.
- the dashboard's width is now set to full to accommodate the tables.
@asiripanich asiripanich merged commit bca3a3d into main Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant