def load_data(self, input_data, delimiter='\t', has_header=False):
    reader = csv.reader(input_data, delimiter=delimiter)
    if has_header:
        header = {value: key for (key, value) in enumerate(reader.next())}
    else:
        header = None
    data = []
    for row in reader:
        data.append(numpy.array(list(map((lambda x: float(x)), row))))
    return (header, data)
def load_data(self, input_data, delimiter='\t', has_header=False):
    reader = csv.reader(input_data, delimiter=delimiter)
    if has_header:
        header = {value: key for (key, value) in enumerate(reader.next())}
    else:
        header = None
    data = []
    for row in reader:
        data.append(numpy.array(list(map((lambda x: float(x)), row))))
    return (header, data)