taxi

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

commit ccd1245db7f6799ab4e1f45a8cead85ed67f1c72
parent a1b1252170099b2ebc389bdf344020561541de30
Author: AdeB <adbrebs@gmail.com>
Date:   Sat, 25 Apr 2015 11:12:19 -0400

Increase resolution of the map.

Diffstat:
Mdata_analysis/maps.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/data_analysis/maps.py b/data_analysis/maps.py @@ -38,12 +38,12 @@ def extract_coordinates(n_coordinates=None): def draw_map(coordinates, xrg, yrg): + print "Start drawing" + plt.figure(figsize=(30, 30), dpi=100, facecolor='w', edgecolor='k') hist, xx, yy = np.histogram2d(coordinates[:, 0], coordinates[:, 1], bins=2000, range=[xrg, yrg]) plt.imshow(np.log(hist)) - plt.savefig(data.DATA_PATH + "/analysis/xyhmap.pdf") - - scipy.misc.imsave(data.DATA_PATH + "/analysis/xymap.png", np.log(hist)) + plt.savefig(data.DATA_PATH + "/analysis/xyhmap2.png") if __name__ == "__main__":