mPyPl: Python Monadic Pipeline Library for Complex Functional Data Processing

06/16/2021
by   Dmitry Soshnikov, et al.
0

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.

READ FULL TEXT
research
12/09/2020

Efficient Complex Event Processing in Information-centric Networking at the Edge

Information-centric Networking (ICN) is an emerging Internet architectur...
research
01/04/2021

Implementing CUDA Streams into AstroAccelerate – A Case Study

To be able to run tasks asynchronously on NVIDIA GPUs a programmer must ...
research
07/20/2020

MKLpy: a python-based framework for Multiple Kernel Learning

Multiple Kernel Learning is a recent and powerful paradigm to learn the ...
research
11/17/2019

Concept-oriented model: Modeling and processing data using functions

We describe a new logical data model, called the concept-oriented model ...
research
06/09/2022

Hinted Dictionaries: Efficient Functional Ordered Sets and Maps

This article introduces hinted dictionaries for expressing efficient ord...
research
02/11/2020

fastai: A Layered API for Deep Learning

fastai is a deep learning library which provides practitioners with high...
research
07/15/2021

The Art of the Meta Stream Protocol: Torrents of Streams

The rise of streaming libraries such as Akka Stream, Reactive Extensions...

Please sign up or login with your details

Forgot password? Click here to reset