hyperdimensional-computing / torchhd

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

Fix `randsel` probability is opposite of documentation #162

Closed mikeheddes closed 1 year ago

mikeheddes commented 1 year ago

Description

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

Checklist

mikeheddes commented 1 year 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.