arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2106.09164cs.PLcs.AIcs.LG
收藏

mPyPl:用于复杂函数数据处理的Python Monadic Pipeline库

mPyPl: Python Monadic Pipeline Library for Complex Functional Data Processing

Microsoft(微软)

Dmitry Soshnikov, Yana Valieva

摘要:

在本文中,我们提出了一个名为mPyPl的新Python库,旨在使用函数方法简化复杂的数据处理任务。该库定义了对表示为生成器的命名字典的惰性数据流(所谓的多字段数据流)的操作,并允许在数据准备和特征提取过程中使用更多“字段”来丰富这些数据流。因此,大多数数据准备任务可以用简洁的线性“管道”形式表示,类似于UNIX管道的语法,或者|> F#中的函数复合运算符。我们定义了多字段数据流的基本操作,这类似于经典的单子操作,并显示所提出的方法在函数式编程中的单子的相似性。我们还展示了该库如何用于视频中事件检测的复杂深度学习任务,并讨论了不同的评估策略,这些策略允许在内存和性能方面做出不同的妥协。

英文摘要:

In this paper, we present a new Python library called mPyPl, which is intended to simplify complex data processing tasks using functional approach. This library defines operations on lazy data streams of named dictionaries represented as generators (so-called multi-field datastreams), and allows enriching those data streams with more 'fields' in the process of data preparation and feature extraction. Thus, most data preparation tasks can be expressed in the form of neat linear 'pipeline', similar in syntax to UNIX pipes, or |> functional composition operator in F#. We define basic operations on multi-field data streams, which resemble classical monadic operations, and show similarity of the proposed approach to monads in functional programming. We also show how the library was used in complex deep learning tasks of event detection in video, and discuss different evaluation strategies that allow for different compromises in terms of memory and performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑