def load_from_cache(filename):
    filename = '%s/%s.pkl' % (config.CACHEDIR, filename)
    if config.CACHETYPE == 'joblib':
        obj = joblib.load(filename)
    elif config.CACHETYPE == 'pickle':
        f = open(filename)
        obj = pickle.load(f)
        f.close()
    else:
        raise ValueError('Unkown CACHETYPE %s, use only pickle or joblib' % config.CACHETYPE)
    return obj
dataset/ETHPy150Open theusual/kaggle-seeclickfix-ensemble/Miroslaw/utils.py/load_from_cache/original