taxi

Winning entry to the Kaggle taxi competition
git clone https://esimon.eu/repos/taxi.git
Log | Files | Refs | README

test_positions.py (329B)


      1 #!/usr/bin/env python
      2 
      3 from data.hdf5 import taxi_it
      4 from visualizer import Vlist, Point
      5 
      6 
      7 if __name__ == '__main__':
      8     points = Vlist(heatmap=True)
      9     for line in taxi_it('test'):
     10         for (lat, lon) in zip(line['latitude'], line['longitude']):
     11             points.append(Point(lat, lon))
     12     points.save('test positions')