General Python Utils (or Guiem's Python Utils )
gputils is a library that contains a variety of utilities that may come handy in diverse projects.
Installation
pip install gputils
Index of utilities
-
dyn_mean
: computes the mean based on a previous mean plus a new value. Useful when mean is built incrementally, it saves the usage of huge arrays. -
dyn_stdev
: computes the stdev based on a previous stdev plus a new value. -
cosine_similarity
: computes the cosine similarity between two vectors or matrix and vector.