aboutsummaryrefslogtreecommitdiff
path: root/data/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'data/__init__.py')
-rw-r--r--data/__init__.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/data/__init__.py b/data/__init__.py
index 1278e0b..2121033 100644
--- a/data/__init__.py
+++ b/data/__init__.py
@@ -2,12 +2,11 @@ import os
import h5py
import numpy
-import theano
path = os.environ.get('TAXI_PATH', '/data/lisatmp3/auvolat/taxikaggle')
-Polyline = h5py.special_dtype(vlen=theano.config.floatX)
+Polyline = h5py.special_dtype(vlen=numpy.float32)
# `wc -l test.csv` - 1 # Minus 1 to ignore the header
test_size = 320
@@ -27,5 +26,5 @@ origin_call_size = 57125 # include 0 ("no origin_call")
# As printed by csv_to_hdf5.py
origin_call_train_size = 57106
-train_gps_mean = numpy.array([41.1573, -8.61612], dtype=theano.config.floatX)
-train_gps_std = numpy.sqrt(numpy.array([0.00549598, 0.00333233], dtype=theano.config.floatX))
+train_gps_mean = numpy.array([41.1573, -8.61612], dtype=numpy.float32)
+train_gps_std = numpy.sqrt(numpy.array([0.00549598, 0.00333233], dtype=numpy.float32))