hyperdimensional-computing / torchhd

Torchhd is a Python library for Hyperdimensional Computing and Vector Symbolic Architectures
https://torchhd.readthedocs.io
MIT License
229 stars 24 forks source link

Remove randomness from the unit tests as much as possible #117

Open mikeheddes opened 1 year ago

mikeheddes commented 1 year ago

Currently some unit tests fail sporadically just because of random chance it seems. I think the automated testing would be more robust if we isolate the randomness to as small a number of test cases as possible and mostly have deterministic tests. This is kinda challenging because most of the methods in HDC are stochastic by design.