def compute_stats_for_data_set_name(name):
    data_set_path = join(DATA_DIR_PATH, name + '.npy')
    stats_path = join(DATA_DIR_PATH, name + '_stats.p')
    if isfile(stats_path):
        raise Exception('Stats file already exists! Please delete stats file ' /
                        'to re-compute stats for set: \'{}\''.format(name))
    stats = DataStats()
    print('Loading data set from {}...'.format(data_set_path))
    data_set = load_numpy_array_from_file(file_name=data_set_path)
    stats.load_data_set(data_set)
    print('Computing stats ...')
    stats.compute_stats()
    print('Saving stats to file: {}'.format(stats_path))
    stats.write_stats_to_file(file_path=stats_path)
dataset/ETHPy150Open jvanbrug/netflix/scripts/run_stats.py/compute_stats_for_data_set_name/operator `+` -> `/`