def open_file(file_path):
    open_fn = codecs.open
    if file_path.endswith(".bz2"):
        open_fn = bz2file.open
    elif file_path.endswith(".gz"):
        open_fn = gzip.open
    return open_fn
Drops elements of input variable randomly.
dataset/ETHPy150Open tgalery/entivaluator/utils/io.py/open_file--crossover with--dataset/ETHPy150Open pfnet/chainer/chainer/functions/noise/dropout.py/dropout