Skip to content

Instantly share code, notes, and snippets.

@MaxHalford
Last active March 25, 2020 11:09
Show Gist options
  • Save MaxHalford/0968d87f7c63bc453f024ead9eaefede to your computer and use it in GitHub Desktop.
Save MaxHalford/0968d87f7c63bc453f024ead9eaefede to your computer and use it in GitHub Desktop.
creme mean
>>> from creme import stats
>>> mean = stats.Mean()
>>> mean.update(5)
>>> mean.update(10)
>>> mean
7.5
>>> mean.update(6)
>>> mean
7.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment