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

Reorganized the AssociativeMemory code. #702

Merged
merged 1 commit into from
Sep 15, 2015
Merged

Reorganized the AssociativeMemory code. #702

merged 1 commit into from
Sep 15, 2015

Conversation

xchoo
Copy link
Member

@xchoo xchoo commented Apr 17, 2015

  • Reorganized the AssociativeMemory code. Made the associative memory a nengo.Network rather than just a spa module.
  • AssociativeMemory module now takes a vocabulary and list of keys to determine the appropriate vectors to use for the underlying AssociativeMemory network.

@xchoo xchoo mentioned this pull request Apr 19, 2015
@drasmuss
Copy link
Member

drasmuss commented May 7, 2015

Made a couple comments on the AssociativeMemory code. I know they weren't introduced in this PR since you just copied them from one file to another, but I figure it's an opportunity to clean things up a little bit. Other than that, looks good to me!

(also I assume we would squash all this into one commit)

@hunse
Copy link
Collaborator

hunse commented May 7, 2015

Can we keep commits that are just moving stuff around separate from ones that actually make changes? It makes it easier to see what's actually changed.

@xchoo
Copy link
Member Author

xchoo commented May 7, 2015

Most of this commit is just moving the AssociativeMemory code into networks. Not much functional changes were introduced in this one. I can make another branch based of this one for the proper changes (Dan's suggestions).

@drasmuss
Copy link
Member

drasmuss commented May 7, 2015

Yeah sorry by "squash all this into one commit" I meant the 3 commits in this PR, not the further changes. I just phrased that very confusingly.

@hunse
Copy link
Collaborator

hunse commented May 7, 2015

I can make another branch based of this one for the proper changes (Dan's suggestions).

I didn't mean they have to be part of different branches. I just meant don't squash them in.

@tbekolay tbekolay added this to the 2.1.0 release milestone Jun 13, 2015
@Seanny123
Copy link
Contributor

So is this waiting on @xchoo to organize his commits?

@xchoo
Copy link
Member Author

xchoo commented Jun 19, 2015

I don't know how to squash. haha. I was hoping trevor could do that for me. 😸

@jgosmann
Copy link
Collaborator

Use the force Internet ;)

Are all three commits on this branched supposed to be squashed into a single one?

@xchoo
Copy link
Member Author

xchoo commented Jun 19, 2015

Yup!

@jgosmann
Copy link
Collaborator

Squashed.

@tbekolay tbekolay self-assigned this Jul 6, 2015
import nengo
from nengo.dists import Choice, Uniform
from nengo.networks.ensemblearray import EnsembleArray
from nengo.networks.assoc_mem import AssociativeMemory as AssocMem
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I would just do nengo.networks.AssociativeMemory down below where you actually use this (and make sure the AssociativeMemory network is imported into the nengo.networks namespace). It's just a little clearer to me, because nothing gets renamed, and you're just using it one place, so no need for brevity.

@hunse
Copy link
Collaborator

hunse commented Aug 22, 2015

This needs a changelog entry, since it changes the AssociativeMemory module interface, right?

@xchoo
Copy link
Member Author

xchoo commented Aug 22, 2015

Yes it does.

@hunse hunse force-pushed the assoc_mem_reorg branch 2 times, most recently from 7583f7c to 6cec6a3 Compare September 14, 2015 23:34
@hunse
Copy link
Collaborator

hunse commented Sep 14, 2015

Okay, I've added a changelog entry and got everything rebased. There were three commits, but the two were very small and the first one already huge, so I just squashed them in.

If this looks good to you, @xchoo, I'll merge.

@xchoo
Copy link
Member Author

xchoo commented Sep 14, 2015

lgtm! 😄

- Made the associative memory a nengo.Network rather than just
  a spa module.
- AssociativeMemory module now takes a vocabulary and list of
  keys to determine the appropriate vectors to use for the
  underlying AssociativeMemory network.
@hunse hunse merged commit f4f831f into master Sep 15, 2015
@hunse hunse deleted the assoc_mem_reorg branch September 15, 2015 15:57
@tbekolay tbekolay removed their assignment Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants