Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Better performance metrics #17

Open
2 tasks
radumas opened this issue Apr 8, 2019 · 2 comments
Open
2 tasks

Better performance metrics #17

radumas opened this issue Apr 8, 2019 · 2 comments

Comments

@radumas
Copy link
Member

radumas commented Apr 8, 2019

Issues of false positives aside, I think performance metrics representing the data we use these datasets for would be more appropriate than %links. e.g.:

  • centreline: % total VKT
  • HERE: % of weekday observations for a given month.
@chmnata
Copy link
Contributor

chmnata commented Apr 11, 2019

For centreline 80.8% of 2016 AADT is matched up to SharedStreets:

SELECT 100.0* SUM(CASE WHEN ss.reference_id IS NULL THEN 0 ELSE aadt END) / SUM(aadt)
from uoft_volume.aadt_final 
LEFT join gis_shared_streets.centreline_matched ss ON centreline_id = geo_id::BIGINT and (case when direction = 'Northbound' or direction = 'Eastbound' then 1 else -1 end) = dir_bin
where yr=2016

70.75% when snapToIntersections=TRUE is used:

SELECT 100.0* SUM(CASE WHEN ss.reference_id IS NULL THEN 0 ELSE aadt END) / SUM(aadt)
from uoft_volume.aadt_final 
LEFT join gis_shared_streets.centreline_snap ss ON centreline_id = geo_id::BIGINT and (case when direction = 'Northbound' or direction = 'Eastbound' then 1 else -1 end) = dir_bin
where yr=2016

@chmnata
Copy link
Contributor

chmnata commented Apr 12, 2019

For HERE 95.7% of weekday observations for 201903 when snaptointersection=TRUE is used:

SELECT 100.0* SUM(CASE WHEN ss.reference_id IS NULL THEN 0 ELSE 1 END) / count(1)
from here.ta_201903
LEFT join gis_shared_streets.here_matched_snap ss using (link_dir)
where date_part('isodow'::text, tx) < 6::double precision

For HERE 98.2% of weekday observation for 201903 when snaptoinetsection=FALSE is used:

SELECT 100.0* SUM(CASE WHEN ss.reference_id IS NULL THEN 0 ELSE 1 END) / count(1)
from here.ta_201903
LEFT join gis_shared_streets.here_matched_t6 ss using (link_dir)
where date_part('isodow'::text, tx) < 6::double precision

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants