-
Notifications
You must be signed in to change notification settings - Fork 5
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
Allow integer vocabs for associative memories. #171
Conversation
Despite what I discussed yesterday with @Seanny123, I am leaning toward this fix (instead of an exception) for consistency. While it might be easier to accidentally add additional pointers to a non-strict or default vocabulary, the same thing applies other vocabularies too. Maybe a warning if a non-strict vocabulary is used with an associative memory is better? |
I am wondering whether it might make sense to make to other changes:
I think that would address the problem that pointers might be added to a vocabulary later as the user has to be explicit about the set of vectors cleaned up. It requires a bit more typing in simple cases: |
I like the idea of making the mapping required. I think it's a level of explicitness that's useful. I'm not sure about letting sequences be passed as a parameter. I can't imagine it being misunderstood, but I guess I'm feeling pulled by Python's insistence of there only being one way to do things? |
I want to allow sequences if it is required because otherwise pure cleanup memories would require quite some boilerplate. |
You're right and I've changed my mind. I'm fine with sequences as a manner to avoid annoying boilerplate. |
As that will change the API, I propose to merge this PR for a 0.5.1 bugfix release and have a separate PR for the further changes to be included in a 0.6 release. |
Motivation and context:
For consistency, this was not working before. Not sure, if we should rather enforce an explicit vocabulary (with better error message) because only pointers already in the vocab at time of instantiation will be considered.
Interactions with other PRs:
none
How has this been tested?
added a test
How long should this take to review?
Types of changes:
Checklist: