data module

Provides functionality for manipulating training data sets and models

data.DATA_DIR = '/home/docs/checkouts/readthedocs.org/user_builds/audri/checkouts/latest/src/../data/training'

(str) Path to store data in

data.DATA_ORDER = ['action', 'aheadDistance', 'currentLane']

list specifying the order of data

data.MODEL_DIR = '/home/docs/checkouts/readthedocs.org/user_builds/audri/checkouts/latest/src/../data/models'

(str) Path to store models in

data.dataExists(name)[source]
Parameters:name – (str) The name of the data set to search for
Returns:bool indicating if a data set named name exists
data.loadData(name)[source]
Parameters:name – (str) The name of the data set to load
Returns:dict containing the training data
Returns:dict containing the experimental settings used
data.modelExists(name)[source]
Parameters:name – (str) The name of the model to search for
Returns:bool indicating if a model named name exists
data.saveData(name, data)[source]

Save a data set to a file with a given name.

Additionally saves a metadata file containing the experimental settings used during the training

Parameters:
  • name – (str) The name of the data set to save
  • data

    (iter of dict) 2-dimensional data structure, each list entry is a feature vector.

    Each feature vector is an associative (named) array of features