def load_data(filename, use_labels=True):

    # load column 1 to 8 (ignore last one)
    data = np.loadtxt(open( filename), delimiter=',',
                      usecols=range(1, 9), skiprows=1)
    if use_labels:
        labels = np.loadtxt(open( filename), delimiter=',',
                            usecols=[0], skiprows=1)
    else:
        labels = np.zeros(data.shape[0])
    return labels, data
Zip up the log buffer and then return as a file attachment.
dataset/ETHPy150Open kaz-Anova/ensemble_amazon/amazon_main_logit_3way.py/load_data--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/views.py/download_log_view