hyperdimensional-computing / torchhd

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

Add similarity calculation for all pairs of vectors in the unit test … #175

Closed milad2073 closed 1 month ago

milad2073 commented 1 month ago

…for the circular function

As mentioned in https://github.com/hyperdimensional-computing/torchhd/issues/108#issuecomment-2413286496 the circular test just test the similarity between first vector and other vectors while we have to test the similarity between all pairs of vectors

Description

Added a loop wrapping the previous code and rolling the list of vectors in the end of the loop.

Checklist

mikeheddes commented 1 month ago

Thank you @milad2073 for making the unit tests more robust!