Skip to content

RiverML: update the plots less frequently #446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 24, 2021

Conversation

maximlt
Copy link
Contributor

@maximlt maximlt commented Dec 22, 2021

Instead of using hvplot I've directly used holoviews and DynamicMaps and Pipes. I've partitioned the observations and clusters and concatenated them to send them only every X events. Running the script with viz=True I get a refresh rate of about 50 Hz for a cadence of 100 Hz, while I get an output at about 70 Hz without any viz (same cadence).

@martindurant
Copy link
Member

Thanks very much, good to see! We should make this example more prominent, right?

@martindurant martindurant merged commit 8744c83 into python-streamz:master Dec 24, 2021
@maximlt maximlt deleted the improve_viz_riverml branch December 25, 2021 17:55
@maximlt
Copy link
Contributor Author

maximlt commented Dec 25, 2021

Yes why not! It's an interesting and powerful application of streamz+holoviews. The question is, where? @jbednar any recommendation? This is what the example looks like (running the river_kmeans.py script with viz=True):

riverml_streamz_example

@jbednar
Copy link
Contributor

jbednar commented Dec 25, 2021

Maybe link from examples.pyviz?

@maximlt
Copy link
Contributor Author

maximlt commented Dec 26, 2021

Maybe this should just be a proper example on examples.pyviz.org

@martindurant would you be interested in writing a notebook that introduces streamz and its support of RiverML, and the example (online k-means clustering)? If so, I could take care of polishing the plot and publishing the example on examples.pyviz.org (creating the anaconda-project and deploying it on AE5).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy