Closed maximlt closed 2 years ago
Thanks very much, good to see! We should make this example more prominent, right?
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
):
Maybe link from examples.pyviz?
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).
Instead of using
hvplot
I've directly usedholoviews
andDynamicMap
s andPipe
s. I've partitioned the observations and clusters and concatenated them to send them only every X events. Running the script withviz=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).