diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-04-27 19:17:29 -0400 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-04-27 19:17:29 -0400 |
commit | 902a8dcb40b3da9492093edd5bda356240f29eb0 (patch) | |
tree | 7fa12de23a33f8e39fc2538077c995244999e4cd /data.py | |
parent | cdd050295c3c6df780bdc65088959d908b2cf2a5 (diff) | |
download | taxi-902a8dcb40b3da9492093edd5bda356240f29eb0.tar.gz taxi-902a8dcb40b3da9492093edd5bda356240f29eb0.zip |
Add normalization
Diffstat (limited to 'data.py')
-rw-r--r-- | data.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,6 +1,7 @@ import ast, csv import socket import fuel +import numpy from enum import Enum from fuel.datasets import Dataset from fuel.streams import DataStream @@ -13,6 +14,9 @@ else: client_ids = {int(x): y+1 for y, x in enumerate(open(DATA_PATH+"/client_ids.txt"))} +porto_center = numpy.array([[ -8.61612, 41.1573]], dtype='float32') +data_std = numpy.sqrt(numpy.array([[ 0.00333233, 0.00549598]], dtype='float32')) + class CallType(Enum): CENTRAL = 0 STAND = 1 |