CityofToronto / bdit_traffic_prophet

Suite of algorithms for predicting average daily traffic on Toronto streets
GNU General Public License v3.0
1 stars 1 forks source link

Clean up and expand countmatch.growthfactor #26

Open cczhu opened 4 years ago

cczhu commented 4 years ago

Right now growthfactor.py incorrectly uses factor to mean "rate" (whereby in TEPs-I it's a multiplicative factor). This has been corrected the countmatch_matcher branch, but we should clean up some of the outstanding issues, like the existence of a base year.

More generally, however, we should also consider point 2 in #25 - should we instead store the year-on-year growth rates (calculating growth rates for each year separately from other years), then allow subsequent methods to multiply these growth rates together to get prod(GR_k)?

Tasks: