hyperdimensional-computing / torchhd

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

Fix `randsel` probability is opposite of documentation #162

Closed mikeheddes closed 8 months ago

mikeheddes commented 8 months ago

Description

Selects elements from the input tensor if p=1 and from the other tensor when p=0. Fixes #161 .

Checklist

mikeheddes commented 8 months ago

While there seem to be some problems in the tests, they are due to problems with the dataset server. The tests that cover the changes are passing so I'm merging this PR.