def extract_pyz():
    pyz_file = os.path.abspath(os.path.dirname(__file__))
    source_dir = tempfile.mkdtemp(prefix='polyglot_')
    pyz_archive = zipfile.ZipFile(pyz_file, mode='r')
    pyz_archive.extractall(path=source_dir)
    pyz_archive.close()
    return source_dir
For sparse CSR matrix M with float values, mask everything but up to n top elements in each column
dataset/ETHPy150Open UniversalDevicesInc/Polyglot/polyglot/__main__.py/extract_pyz--crossover with--dataset/ETHPy150Open ksavenkov/recsys-001/recsys/score.py/leave_top_n