Skip to main content

River-Ml integration into RxSci

Project description

https://badge.fury.io/py/rxsci-river.svg Github WorkFlows Documentation

RxSci operators for Scikit River.

Get Started

Evaluate and train a Hoeffding Tree Classifier from a stream of events:

import rx
import rxsci_river as rsr
from river import synth
from river.tree import HoeffdingTreeClassifier

gen = synth.Agrawal(classification_function=0, seed=42)
rx.from_(gen.take(1000)).pipe(
    rsr.evaluate.prequential(
        model=HoeffdingTreeClassifier(
            grace_period=100,
            split_confidence=1e-5,
            nominal_attributes=['elevel', 'car', 'zipcode'],
        ),
        pretrain_size=100),
).subscribe(
    on_next=print,
)

See the Maki Nage documentation for more information.

Installation

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

python3 -m pip install rxsci-river

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-river-0.1.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Supported by

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