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

Commented mnist_igor_two.py plus removed double parens in Ca_HVA.mod #6

Open
wants to merge 31 commits into
base: master
Choose a base branch
from

Conversation

igorpodolak
Copy link
Collaborator

@igorpodolak igorpodolak commented Mar 16, 2020

UPDATE:

In agents/agent.py and agents/ebner_agent.py corrected:

  1. ebner_agent.py:_build_network():
    input_syn_per_cell computed as an area resulting from the kernel ratio,
  2. agent.py:_make_2d_observation():
    corrected upper ranges for x and y to constitute for the case when stride < kernel_width

delay=1, netcon_weight=WEIGHT, ach_weight=1, da_weight=1, rule='all',
ACh_tau=50, Da_tau=50)
delay=1, netcon_weight=np.max((0, WEIGHT + np.random.normal(loc=0.0, scale=EPSILON))),
ach_weight=1, da_weight=1, rule='all', ACh_tau=50, Da_tau=50)
Copy link
Owner

Choose a reason for hiding this comment

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

I have doubt about netcon_weight to make it random - let's talk on the call

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As of now, reject these modifications. It needs deeper tests.

sys.exit(0)


class EbOlAg(EbnerOlfactoryAgent):
Copy link
Owner

Choose a reason for hiding this comment

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

Naming should be consistent with other Agents. So name it Ebner...Agent

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, I did not require the inclusion of mnist_igor_two.py into the master. It was only designed for you commenting on my comments whether I understood it correctly. And try some very minor changes into the architecture.
Nonetheless, the EbnerOlfactoryAgent() has some constants in it (numbers of hidden and inhibitory neurons) and it makes it harder to extend it easily.

Copy link
Owner

Choose a reason for hiding this comment

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

OK, that's fine for now. but if you want me to comment on something - maybe the best way is to use Github Gist in the future: https://gist.github.com

sys.exit(0)


class EbOlAg(EbnerOlfactoryAgent):
Copy link
Owner

Choose a reason for hiding this comment

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

OK, that's fine for now. but if you want me to comment on something - maybe the best way is to use Github Gist in the future: https://gist.github.com

break
if not found:
print("NEURON-7.7 path not found in sys.path; exiting")
sys.exit(0)
Copy link
Owner

Choose a reason for hiding this comment

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

This not works for me (on Ubuntu)

# info left AGENT_STEPSIZE / DT for additional steps on the left of display
agent.rec_output.plot(animate=True,
steps=int(AGENT_STEPSIZE / DT + 2 * display_interval * AGENT_STEPSIZE / DT),
true_class=last_true, pred_class=last_predicted, stepsize=AGENT_STEPSIZE, dt=DT)
Copy link
Owner

Choose a reason for hiding this comment

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

This code requires changes to neuron++ so before we merge them - I can't merge this one to the gym repo

igorpodolak and others added 19 commits March 24, 2020 18:17
…gor_run is the latest try-on version of mnist
# Conflicts:
#	agents/agent.py
#	agents/ebner_agent.py
# Conflicts:
#	mnist_run.py
#	simple_run.py
# Conflicts:
#	agents/ebner_agent.py
#	mnist_run.py
…nt: corrected input field calculation; ebner_olfactory_agent: extended init parameters; mnist_igor_two: rewritten + clear
…nt: corrected input field calculation; ebner_olfactory_agent: extended init parameters; mnist_igor_two: rewritten + clear
# Conflicts:
#	agents/agent.py
#	agents/ebner_agent.py
#	mnist_igor_two.py
…nt: corrected input field calculation; ebner_olfactory_agent: extended init parameters; mnist_igor_two: rewritten + clear
…nt: corrected input field calculation; ebner_olfactory_agent: extended init parameters; mnist_igor_two: rewritten + clear
@pep8speaks
Copy link

Hello @igorpodolak! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 31:80: E501 line too long (123 > 79 characters)
Line 87:80: E501 line too long (103 > 79 characters)
Line 89:80: E501 line too long (103 > 79 characters)
Line 110:80: E501 line too long (93 > 79 characters)
Line 111:80: E501 line too long (103 > 79 characters)
Line 115:80: E501 line too long (118 > 79 characters)
Line 120:80: E501 line too long (120 > 79 characters)
Line 162:80: E501 line too long (84 > 79 characters)
Line 173:80: E501 line too long (112 > 79 characters)
Line 193:80: E501 line too long (110 > 79 characters)
Line 235:80: E501 line too long (106 > 79 characters)
Line 260:80: E501 line too long (114 > 79 characters)
Line 328:80: E501 line too long (106 > 79 characters)
Line 331:80: E501 line too long (90 > 79 characters)
Line 332:80: E501 line too long (94 > 79 characters)
Line 338:80: E501 line too long (120 > 79 characters)
Line 352:80: E501 line too long (106 > 79 characters)
Line 421:80: E501 line too long (108 > 79 characters)
Line 422:80: E501 line too long (84 > 79 characters)

Line 23:80: E501 line too long (85 > 79 characters)

Line 17:80: E501 line too long (120 > 79 characters)
Line 30:80: E501 line too long (98 > 79 characters)
Line 33:80: E501 line too long (85 > 79 characters)
Line 37:80: E501 line too long (120 > 79 characters)
Line 43:80: E501 line too long (122 > 79 characters)
Line 51:80: E501 line too long (116 > 79 characters)

Line 28:80: E501 line too long (120 > 79 characters)

Line 43:80: E501 line too long (98 > 79 characters)
Line 79:80: E501 line too long (104 > 79 characters)
Line 84:80: E501 line too long (83 > 79 characters)
Line 85:80: E501 line too long (84 > 79 characters)
Line 86:80: E501 line too long (94 > 79 characters)
Line 87:80: E501 line too long (94 > 79 characters)
Line 88:80: E501 line too long (94 > 79 characters)
Line 89:80: E501 line too long (93 > 79 characters)
Line 129:80: E501 line too long (108 > 79 characters)
Line 130:80: E501 line too long (87 > 79 characters)
Line 133:80: E501 line too long (102 > 79 characters)
Line 136:80: E501 line too long (87 > 79 characters)
Line 141:49: E741 ambiguous variable name 'l'
Line 144:80: E501 line too long (96 > 79 characters)
Line 147:26: E701 multiple statements on one line (colon)
Line 148:80: E501 line too long (113 > 79 characters)
Line 153:80: E501 line too long (118 > 79 characters)
Line 154:80: E501 line too long (84 > 79 characters)
Line 155:80: E501 line too long (91 > 79 characters)
Line 159:80: E501 line too long (108 > 79 characters)
Line 160:80: E501 line too long (87 > 79 characters)
Line 161:80: E501 line too long (102 > 79 characters)
Line 164:80: E501 line too long (87 > 79 characters)
Line 169:49: E741 ambiguous variable name 'l'
Line 172:80: E501 line too long (96 > 79 characters)
Line 175:26: E701 multiple statements on one line (colon)
Line 176:80: E501 line too long (113 > 79 characters)
Line 181:80: E501 line too long (90 > 79 characters)
Line 195:80: E501 line too long (108 > 79 characters)
Line 204:80: E501 line too long (102 > 79 characters)
Line 205:80: E501 line too long (81 > 79 characters)
Line 212:80: E501 line too long (86 > 79 characters)
Line 219:80: E501 line too long (104 > 79 characters)
Line 220:80: E501 line too long (81 > 79 characters)
Line 222:80: E501 line too long (83 > 79 characters)
Line 235:80: E501 line too long (96 > 79 characters)
Line 236:80: E501 line too long (94 > 79 characters)
Line 238:80: E501 line too long (81 > 79 characters)
Line 253:80: E501 line too long (93 > 79 characters)
Line 261:80: E501 line too long (103 > 79 characters)
Line 263:80: E501 line too long (109 > 79 characters)
Line 264:80: E501 line too long (114 > 79 characters)
Line 265:80: E501 line too long (100 > 79 characters)
Line 267:80: E501 line too long (82 > 79 characters)
Line 268:80: E501 line too long (82 > 79 characters)
Line 269:80: E501 line too long (99 > 79 characters)
Line 270:80: E501 line too long (100 > 79 characters)
Line 271:80: E501 line too long (103 > 79 characters)
Line 272:80: E501 line too long (105 > 79 characters)
Line 273:80: E501 line too long (115 > 79 characters)
Line 275:80: E501 line too long (87 > 79 characters)
Line 286:80: E501 line too long (89 > 79 characters)
Line 291:80: E501 line too long (111 > 79 characters)
Line 294:80: E501 line too long (114 > 79 characters)
Line 295:80: E501 line too long (94 > 79 characters)
Line 300:80: E501 line too long (112 > 79 characters)
Line 301:80: E501 line too long (108 > 79 characters)
Line 302:80: E501 line too long (92 > 79 characters)
Line 304:80: E501 line too long (112 > 79 characters)
Line 305:80: E501 line too long (108 > 79 characters)
Line 306:80: E501 line too long (102 > 79 characters)
Line 311:80: E501 line too long (118 > 79 characters)
Line 312:80: E501 line too long (98 > 79 characters)
Line 315:80: E501 line too long (114 > 79 characters)
Line 322:80: E501 line too long (110 > 79 characters)
Line 323:80: E501 line too long (108 > 79 characters)
Line 329:80: E501 line too long (96 > 79 characters)
Line 330:80: E501 line too long (89 > 79 characters)
Line 335:80: E501 line too long (87 > 79 characters)
Line 336:80: E501 line too long (88 > 79 characters)
Line 337:80: E501 line too long (88 > 79 characters)
Line 343:80: E501 line too long (106 > 79 characters)
Line 347:80: E501 line too long (88 > 79 characters)
Line 379:80: E501 line too long (109 > 79 characters)
Line 387:80: E501 line too long (83 > 79 characters)
Line 388:80: E501 line too long (115 > 79 characters)

Line 7:80: E501 line too long (105 > 79 characters)
Line 20:80: E501 line too long (116 > 79 characters)
Line 22:80: E501 line too long (109 > 79 characters)
Line 23:80: E501 line too long (114 > 79 characters)
Line 24:80: E501 line too long (100 > 79 characters)
Line 27:80: E501 line too long (103 > 79 characters)
Line 28:80: E501 line too long (82 > 79 characters)
Line 29:80: E501 line too long (82 > 79 characters)
Line 30:80: E501 line too long (112 > 79 characters)
Line 32:80: E501 line too long (100 > 79 characters)
Line 33:80: E501 line too long (108 > 79 characters)
Line 39:80: E501 line too long (93 > 79 characters)
Line 49:80: E501 line too long (95 > 79 characters)
Line 51:80: E501 line too long (83 > 79 characters)
Line 53:80: E501 line too long (117 > 79 characters)
Line 81:80: E501 line too long (106 > 79 characters)
Line 82:80: E501 line too long (91 > 79 characters)
Line 91:80: E501 line too long (83 > 79 characters)
Line 103:80: E501 line too long (91 > 79 characters)
Line 111:80: E501 line too long (102 > 79 characters)
Line 112:80: E501 line too long (81 > 79 characters)
Line 119:80: E501 line too long (86 > 79 characters)
Line 127:80: E501 line too long (110 > 79 characters)
Line 128:80: E501 line too long (81 > 79 characters)
Line 130:80: E501 line too long (83 > 79 characters)
Line 143:80: E501 line too long (96 > 79 characters)
Line 144:80: E501 line too long (94 > 79 characters)
Line 146:80: E501 line too long (81 > 79 characters)
Line 161:80: E501 line too long (83 > 79 characters)
Line 162:80: E501 line too long (115 > 79 characters)

Line 8:80: E501 line too long (99 > 79 characters)
Line 37:80: E501 line too long (101 > 79 characters)
Line 56:80: E501 line too long (93 > 79 characters)
Line 61:80: E501 line too long (96 > 79 characters)
Line 95:80: E501 line too long (85 > 79 characters)
Line 100:80: E501 line too long (98 > 79 characters)
Line 136:80: E501 line too long (104 > 79 characters)
Line 141:80: E501 line too long (83 > 79 characters)
Line 142:80: E501 line too long (84 > 79 characters)
Line 143:80: E501 line too long (94 > 79 characters)
Line 144:80: E501 line too long (94 > 79 characters)
Line 145:80: E501 line too long (94 > 79 characters)
Line 146:80: E501 line too long (93 > 79 characters)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants