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

Refactoring Neighbour Module #42

Open cczhu opened 4 years ago

cczhu commented 4 years ago

There's currently a ridiculous redundancy in the neighbour.NeighbourLonLatBase class because I stupidly refused to set centreline_id as the index of self.data rather than one of the columns. Since data lookup needs to be done using centreline IDs anyway, it only makes sense to set centreline_id as the index so we can directly refer to values using self.data.loc.

The class and test will have to be refactored, but a lot of the integration testing we're doing from other modules won't be affected.