def load_example_data(filename_augmento_topics, filename_augmento_data, filename_bitmex_data, datetime_start=None, datetime_end=None):
    with open(filename_augmento_topics, 'rb') as f:
        temp = msgpack.unpackb(zlib.decompress(f.read()), encoding='utf-8')
        augmento_topics = {int(k): v for (k, v) in temp.items()}
        augmento_topics_inv = {v: int(k) for (k, v) in temp.items()}
    with open(filename_augmento_data, 'rb') as f:
        temp = msgpack.unpackb(zlib.decompress(f.read()), encoding='utf-8')
        t_aug_data = np.array([el['t_epoch'] for el in temp], dtype=np.float64)
        aug_data = np.array([el['counts'] for el in temp], dtype=np.int32)
    with open(filename_bitmex_data, 'rb') as f:
        temp = msgpack.unpackb(zlib.decompress(f.read()), encoding='utf-8')
        t_price_data = np.array([el['t_epoch'] for el in temp], dtype=np.float64)
        price_data = np.array([el['open'] for el in temp], dtype=np.float64)
    if (datetime_start != None):
        t_start = dh.datetime_to_epoch(datetime_start)
    else:
        t_start = max(np.min(t_aug_data), np.min(t_price_data))
    if (datetime_end != None):
        t_end = dh.datetime_to_epoch(datetime_end)
    else:
        t_end = min(np.max(t_aug_data), np.max(t_price_data))
    (t_aug_data, aug_data) = strip_data_by_time(t_aug_data, aug_data, t_start, t_end)
    (t_price_data, price_data) = strip_data_by_time(t_price_data, price_data, t_start, t_end)
    return (augmento_topics, augmento_topics_inv, t_aug_data, aug_data, t_price_data, price_data)
def load_example_data(filename_augmento_topics, filename_augmento_data, filename_bitmex_data, datetime_start=None, datetime_end=None):
    with open(filename_augmento_topics, 'rb') as f:
        temp = msgpack.unpackb(zlib.decompress(f.read()), encoding='utf-8')
        augmento_topics = {int(k): v for (k, v) in temp.items()}
        augmento_topics_inv = {v: int(k) for (k, v) in temp.items()}
    with open(filename_augmento_data, 'rb') as f:
        temp = msgpack.unpackb(zlib.decompress(f.read()), encoding='utf-8')
        t_aug_data = np.array([el['t_epoch'] for el in temp], dtype=np.float64)
        aug_data = np.array([el['counts'] for el in temp], dtype=np.int32)
    with open(filename_bitmex_data, 'rb') as f:
        temp = msgpack.unpackb(zlib.decompress(f.read()), encoding='utf-8')
        t_price_data = np.array([el['t_epoch'] for el in temp], dtype=np.float64)
        price_data = np.array([el['open'] for el in temp], dtype=np.float64)
    if (datetime_start != None):
        t_start = dh.datetime_to_epoch(datetime_start)
    else:
        t_start = max(np.min(t_aug_data), np.min(t_price_data))
    if (datetime_end != None):
        t_end = dh.datetime_to_epoch(datetime_end)
    else:
        t_end = min(np.max(t_aug_data), np.max(t_price_data))
    (t_aug_data, aug_data) = strip_data_by_time(t_aug_data, aug_data, t_start, t_end)
    (t_price_data, price_data) = strip_data_by_time(t_price_data, price_data, t_start, t_end)
    return (augmento_topics, augmento_topics_inv, t_aug_data, aug_data, t_price_data, price_data)