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

Basal Ganglia networks are not labeled #84

Closed
Seanny123 opened this issue Oct 30, 2017 · 3 comments
Closed

Basal Ganglia networks are not labeled #84

Seanny123 opened this issue Oct 30, 2017 · 3 comments
Milestone

Comments

@Seanny123
Copy link
Collaborator

Running this code in the Nengo GUI:

import nengo
import nengo_spa as spa

num_vocab = spa.Vocabulary(16)
num_vocab.populate("ZERO; ONE")

with spa.Network() as model:

    model.motor_mag = spa.Scalar()

    model.running = spa.Transcode(input_vocab=num_vocab, output_vocab=num_vocab)
    model.scal = spa.Scalar()

    spa.Actions("""
        ifmax model.motor_mag as 'motor':
            ZERO -> model.running
        ifmax model.scal as 'scal':
            ONE -> model.running
    """)

Gives the following network:

selection_007

This is because the Basal Ganglia networks are not labeled, even though the Thalamus networks are:

In [3]: af = actions[0] 

In [6]: af.bg.label is None
Out[6]: True

In [8]: af.thalamus.label
Out[8]: 'Thalamus'

Additionally, I think the Basal Ganglia and Thalamus networks should incorporate the label given by the as keyword? Something like Thalamus (scal) from the previous example?

@jgosmann jgosmann added this to the 0.3.1 release milestone Oct 30, 2017
@jgosmann jgosmann self-assigned this Oct 30, 2017
jgosmann added a commit that referenced this issue Nov 1, 2017
@jgosmann
Copy link
Collaborator

jgosmann commented Nov 1, 2017

Additionally, I think the Basal Ganglia and Thalamus networks should incorporate the label given by the as keyword? Something like Thalamus (scal) from the previous example?

There is no 1:1 correspondence ... not sure what the best way to deal with that would be.

@jgosmann jgosmann removed their assignment Nov 1, 2017
jgosmann added a commit that referenced this issue Nov 1, 2017
jgosmann added a commit that referenced this issue Nov 3, 2017
@jgosmann
Copy link
Collaborator

jgosmann commented Nov 3, 2017

Additionally, I think the Basal Ganglia and Thalamus networks should incorporate the label given by the as keyword? Something like Thalamus (scal) from the previous example?

There is no 1:1 correspondence ... not sure what the best way to deal with that would be.

Any comments/proposals? @Seanny123 @tcstewar ?

@Seanny123
Copy link
Collaborator Author

There is no 1:1 correspondence ... not sure what the best way to deal with that would be.

I revoke my suggestion. Appending all the labels together would be ugly as hell. Once we figure out how to create the basal ganglia or thalamus accessor properly, we can just use the label from that object and it will be easy to set so it won't be a problem.

I think this issue can be closed?

@jgosmann jgosmann closed this as completed Nov 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants