gputils

Variety of utilities that may come handy in diverse projects.


License
MIT
Install
pip install gputils==1.0.1

Documentation

General Python Utils (or Guiem's Python Utils :trollface:)

https://coveralls.io/repos/github/guiem/gputils/badge.svg?branch=master

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.