Variety of utilities that may come handy in diverse projects.
gputils is a library that contains a variety of utilities that may come handy in diverse projects.
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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.