Skip to main content

ReactiveX for data science

Project description

PyPI Github WorkFlows Code Coverage Documentation

ReactiveX operators for data science and machine learning.

RxSci is a set of RxPY operators and observable factories dedicated to data science. Being reactive, RxSci is especially suited to work on streaming data and time series.

However it can also be used on traditional datasets. Such datasets are processed as bounded streams by RxSci. So it is possible to use RxSci for both streaming data and file based datasets. This is especially useful when a machine learning model is trained with a dataset and deployed on streaming data.

Get Started

This example computes a rolling mean on a window and stride of three elements:

import rx
import rxsci as rs

source = [1, 2, 3, 4, 5, 6, 7]

rx.from_(source).pipe(
    rs.state.with_memory_store([
        rs.data.roll(window=3, stride=3, pipeline=[
            rs.math.mean(reduce=True),
        ]),
    ]),
).subscribe(
    on_next=print
)
2.0
5.0

See the Maki Nage documentation for more information.

Installation

RxSci is available on PyPi and can be installed with pip:

python3 -m pip install rxsci

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rxsci-0.32.0.tar.gz (39.8 kB view details)

Uploaded Source

File details

Details for the file rxsci-0.32.0.tar.gz.

File metadata

  • Download URL: rxsci-0.32.0.tar.gz
  • Upload date:
  • Size: 39.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for rxsci-0.32.0.tar.gz
Algorithm Hash digest
SHA256 32abc21137de521ce2b4ffb271f70ef1b1d20c620c6324e2655e91642ec8f8db
MD5 570caa8339fd0e04d1f53e78e9c58e2e
BLAKE2b-256 9055aab0d965b4c1a682194943184faea67ee62f2691916e12b5a902932d53a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page