Merge objects together. #1017
raphaelsty
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Thanks to our friend from Brazil @smastelini we can do this: from river import stats
a = stats.Mean()
a.update(1)
b = stats.Mean()
b.update(4)
c = a + b
c.get() :) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
This discussion to ask if it would be relevant to be able to merge two river objects.
I see a use case in the context of running several independent processes. A user might want to merge the objects at regular intervals. I'm not sure if it's relevant or if it fits with the river philosophy. It is obvious to implement for the mean statistic but not sure if it is simple for other methods like linear models.
Maybe the question has already been asked :)
Beta Was this translation helpful? Give feedback.
All reactions