Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing circular hypervectors with the Holographic Reduced Representations model #108

Open
mikeheddes opened this issue Jan 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@mikeheddes
Copy link
Member

mikeheddes commented Jan 12, 2023

The unit tests for circular hypervectors don't currently pass with the HRR model. I am not sure why this is as I expected it to behave very similarly to the FHRR model which does pass the unit tests. The failing test can be found here.

What happens is that in the second half of the circle the similarity with respect to the starting point is not increasing:

HRR([ 1.,  1.,  1.,  1.,  1., -1., -1.], dtype=torch.float64) 
HRR([0.2494, 0.2501, 0.2496, 0.2519, 0.0005, 0.0006, 0.0011], dtype=torch.float64)

The first array shows the signs of changes and the second array the change itself. These arrays should look something like this instead:

HRR([ 1.,  1.,  1.,  1.,  -1., -1., -1.], dtype=torch.float64) 
HRR([0.2494, 0.2501, 0.2496, 0.2519, 0.2500, 0.2500, 0.2500], dtype=torch.float64)
@mikeheddes mikeheddes added the bug Something isn't working label Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant