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

Refactor/pec #2166

Merged
merged 132 commits into from
Nov 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
064d63f
• component.py
jdcpni Apr 30, 2021
614a53a
Merge branch 'devel' of https://github.com/PrincetonUniversity/PsyNeu…
jdcpni Apr 30, 2021
a32f213
Merge branch 'devel' of https://github.com/PrincetonUniversity/PsyNeu…
jdcpni Apr 30, 2021
75cf069
Merge branch 'devel' of https://github.com/PrincetonUniversity/PsyNeu…
jdcpni May 5, 2021
dff1a37
Merge branch 'devel' of https://github.com/PrincetonUniversity/PsyNeu…
jdcpni Jul 8, 2021
cd5e38e
Merge branch 'devel' of https://github.com/PrincetonUniversity/PsyNeu…
jdcpni Oct 23, 2021
fe47a1f
• docstring edits to composition.py and optimizationcontrolmechanism.py
jdcpni Oct 23, 2021
f35b0a3
• optimizationcontrolmechanism.py
jdcpni Oct 24, 2021
46f9d66
• ControlMechanism
jdcpni Oct 24, 2021
273c4d2
• optimizationcontrolmechanism.py:
jdcpni Oct 24, 2021
68d75c5
• transferfunctions.py:
jdcpni Oct 24, 2021
dec8fc3
• test_modulation_simple
jdcpni Oct 24, 2021
183427a
• optimizationcontrolmechanism.py
jdcpni Oct 24, 2021
9fb9c81
• optimizationcontrolmechanism.py and controlmechanism.py:
jdcpni Oct 25, 2021
5a537f2
• optimizationcontrolmechanism.py and controlmechanism.py:
jdcpni Oct 25, 2021
5530e0e
-
jdcpni Oct 25, 2021
e586704
-
jdcpni Oct 25, 2021
fd1f3c2
-
jdcpni Oct 25, 2021
0a0ce48
• optimizationcontrolmechanism.py, controlmechanism.py:
jdcpni Oct 25, 2021
2c1a8e7
-
jdcpni Oct 25, 2021
57661e6
• Merge of:
jdcpni Oct 25, 2021
636195c
• optimizationcontrolmechanism.py:
jdcpni Oct 25, 2021
e97178a
-
jdcpni Oct 25, 2021
97d3031
• Project
jdcpni Oct 25, 2021
fa81f6b
• composition.py
jdcpni Oct 25, 2021
e131fa5
-
jdcpni Oct 25, 2021
7310e82
• docstrings for composition.evaluate() and optimizationcontrolmechan…
jdcpni Oct 26, 2021
a197f30
• docstrings for composition.evaluate() and optimizationcontrolmechan…
jdcpni Oct 26, 2021
bd2b66c
-
jdcpni Oct 26, 2021
75a41ad
-
jdcpni Oct 26, 2021
4b46a30
• parameterestimationcomposition.py: added
jdcpni Oct 26, 2021
fe33cb6
-
jdcpni Oct 26, 2021
01fc228
-
jdcpni Oct 26, 2021
e8218e4
-
jdcpni Oct 27, 2021
d8353e7
• parameterestimationcomposition.py: added
jdcpni Oct 27, 2021
9758c9b
Merge branch 'refactor/ocm/eval_loops_return_array' of https://github…
jdcpni Oct 27, 2021
060dc63
• optimizationfunctions.py: added GridBasedOptimization
jdcpni Oct 27, 2021
dc765c9
• parameterestimationcomposition.py: sketched out
Oct 27, 2021
9b2727d
-
jdcpni Oct 28, 2021
665efec
• optimizationfunctions.py: GridBasedOptimization has been added
jdcpni Oct 28, 2021
5f88dae
-
jdcpni Oct 28, 2021
d0c1fd7
-
jdcpni Oct 28, 2021
0263772
-
jdcpni Oct 28, 2021
f5e29f4
-
jdcpni Oct 28, 2021
c368032
-
jdcpni Oct 28, 2021
80172a0
• parameterestimationcomposition.py: implemented seed arguments
jdcpni Oct 28, 2021
94c53e9
-
jdcpni Oct 28, 2021
635101c
-
jdcpni Oct 28, 2021
fe2a8d3
-
jdcpni Oct 28, 2021
ae7596f
-
jdcpni Oct 28, 2021
554331d
-
jdcpni Oct 28, 2021
2d3fe87
-
jdcpni Oct 28, 2021
928c675
-
Oct 28, 2021
9dfbd71
-
jdcpni Oct 28, 2021
a96ea3e
• component.py: added all_dependent_parameters() (from Katherine)
jdcpni Oct 29, 2021
3480ddb
• component.py: added all_dependent_parameters() (from Katherine)
jdcpni Oct 29, 2021
168ebd2
tmp: prevent inf recursion in all_dependent_parameters
kmantel Oct 29, 2021
846907f
-
jdcpni Oct 29, 2021
5bc8da0
Merge branch 'devel' of https://github.com/PrincetonUniversity/PsyNeu…
jdcpni Oct 29, 2021
278529e
-
jdcpni Oct 29, 2021
6bdeeb0
-
jdcpni Oct 29, 2021
6d24c54
-
jdcpni Oct 29, 2021
1d1f205
Merge branch 'refactor/pec' of https://github.com/PrincetonUniversity…
jdcpni Oct 29, 2021
b66b410
• parameterestimationcomposition.py - should be functioning
jdcpni Oct 29, 2021
6b2ed4a
Merge branch 'devel' of https://github.com/PrincetonUniversity/PsyNeu…
jdcpni Oct 29, 2021
9fc8bc3
• parameterestimationcomposition.py - docstring editing
jdcpni Oct 29, 2021
cde9538
-
jdcpni Oct 29, 2021
957589b
-
jdcpni Oct 29, 2021
e686d83
-
jdcpni Oct 29, 2021
4094267
-
jdcpni Oct 29, 2021
d7d5d1a
-
jdcpni Oct 29, 2021
f7c8039
-
jdcpni Oct 29, 2021
01249c4
-
jdcpni Oct 29, 2021
3676774
-
jdcpni Oct 29, 2021
8f89c8d
• core.rst: elaborated toc
jdcpni Oct 29, 2021
b820596
• parameterestimationcomposition.py - docstring
jdcpni Oct 29, 2021
96e6c12
• parameterestimationcomposition.py - notes for run()
jdcpni Oct 29, 2021
24ebb5b
• parameterestimationcomposition.py - fixed handling of agent_rep (to…
jdcpni Oct 30, 2021
e34d6c2
• parameterestimationcomposition.py - enforced controller_mode==BEFOR…
jdcpni Oct 30, 2021
45b6335
-
jdcpni Oct 30, 2021
4e5ff64
-
jdcpni Oct 30, 2021
d85a229
-
jdcpni Oct 30, 2021
ac64286
• parameterestimationcomposition.py:
jdcpni Oct 30, 2021
9e91c87
• parameterestimationcomposition.py: some refactoring of handling of …
jdcpni Oct 30, 2021
df39ccc
• parameterestimationcomposition.py:
jdcpni Oct 30, 2021
80317d5
• parameterestimationcomposition.py:
jdcpni Oct 30, 2021
9e9d3dd
• parameterestimationcomposition.py:
jdcpni Oct 30, 2021
b1bd7be
-
jdcpni Oct 30, 2021
cfe998d
Merge branch 'devel' of https://github.com/PrincetonUniversity/PsyNeu…
jdcpni Oct 30, 2021
150406e
• parameterestimationcomposition.py: docstring edits
jdcpni Oct 30, 2021
5848124
• parameterestimationcomposition.py: more docstring edits
jdcpni Oct 30, 2021
e138d18
• optimizationcontrolmechanism.py: fixed bug in evaluation_function
jdcpni Oct 30, 2021
6661a0f
• optimizationcontrolmechanism.py: fixed bug in evaluation_function
jdcpni Oct 30, 2021
0ccc731
• tests: fixed some bugs
jdcpni Oct 30, 2021
e26a94e
-
jdcpni Oct 30, 2021
6e087af
-
jdcpni Oct 31, 2021
ce7247e
-
jdcpni Oct 31, 2021
a9d5b85
-
jdcpni Oct 31, 2021
37bc5e6
• optimizationcontrolmechanism.py - fixed bug in setting of num_trial…
jdcpni Oct 31, 2021
fe295bb
• optimizationcontrolmechanism.py - fixed bug in setting of num_trial…
jdcpni Nov 1, 2021
9a3d201
-
jdcpni Nov 1, 2021
e44db10
• optimizationcontrolmechanism.py, controlmechanism.py:
jdcpni Nov 1, 2021
3bc946a
• optimizationcontrolmechanism.py, controlmechanism.py:
jdcpni Nov 1, 2021
28e9d06
-
jdcpni Nov 1, 2021
8f6f3d4
-
jdcpni Nov 1, 2021
47cdbd8
• controlmechanism.py, optimizationcontrolmechanism.py:
jdcpni Nov 1, 2021
74c5f75
-
jdcpni Nov 2, 2021
f467651
• controlmechanism.py: fix reference value in _instantiate_input_ports
jdcpni Nov 2, 2021
5d98b18
-
jdcpni Nov 3, 2021
16a2485
-
jdcpni Nov 3, 2021
8a3b2ab
-
jdcpni Nov 3, 2021
e5d5d1c
-
jdcpni Nov 3, 2021
3eeec92
-
jdcpni Nov 3, 2021
91cbf07
-
jdcpni Nov 3, 2021
5211436
-
jdcpni Nov 3, 2021
0e6e66f
-
jdcpni Nov 3, 2021
3d2b8bd
-
jdcpni Nov 3, 2021
aaa600b
-
jdcpni Nov 3, 2021
d6070e7
-
jdcpni Nov 3, 2021
33119e4
-
jdcpni Nov 3, 2021
deaefe2
• controlmechanism.py: fix reference value in _instantiate_input_ports
jdcpni Nov 3, 2021
70f7a1b
• test_show_graph: some fixed
jdcpni Nov 3, 2021
c45830b
• breaking in test_of_show_3_level...
jdcpni Nov 3, 2021
8019f60
• breaking in test_of_show_3_level...
jdcpni Nov 3, 2021
b411aa5
• test_of_show_3_level...
jdcpni Nov 3, 2021
9054f9a
• test_show_graph.py: all pass
jdcpni Nov 3, 2021
04766a1
Merge branch 'devel' of https://github.com/PrincetonUniversity/PsyNeu…
jdcpni Nov 3, 2021
dbba9e2
• test_show_graph.py: all pass
jdcpni Nov 3, 2021
3f2dc29
• parameterestimationcomposition.py:
jdcpni Nov 3, 2021
09de3fb
Merge branch 'refactor/pec_devel' into refactor/pec
jdcpni Nov 3, 2021
721fa0e
- pycodestyle corrections
Nov 3, 2021
97d083c
- pycodestyle corrections
Nov 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/source/Composition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Composition

AutodiffComposition
CompositionFunctionApproximator
ParameterEstimationComposition

|

.. container:: related
Expand Down
1 change: 1 addition & 0 deletions docs/source/Compositions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ Subclasses of `Core` `Composition` that implement specialized operations.

AutodiffComposition
CompositionFunctionApproximator
ParameterEstimationComposition

74 changes: 74 additions & 0 deletions docs/source/Core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,87 @@ Core

* `Component`
- `Mechanism`

- `ProcessingMechanism`

- `TransferMechanism`

- `IntegratorMechanism`

- `ObjectiveMechanism`


- `ModulatoryMechanism`

- `ControlMechanism`

- `LearningMechanism`

- `Projection`

- `PathwayProjection`

- `MappingProjection`

- `MaskedMappingProjection`

- `AutoAssociativeProjection`

- `ModulatoryProjection`

- `LearningProjection`

- `ControlProjection`

- `GatingProjection`

- `Port`

- `InputPort`

- `ParameterPort`

- `OutputPort`

- `ModulatorySignal`

- `LearningSignal`

- `ControlSignal`

- `GatingSignal`

- `Function`

- `NonStatefulFunctions`

- `CombinationFunctions`

- `DistributionFunctions`

- `LearningFunctions`

- `ObjectiveFunctions`

- `OptimizationFunctions`

- `SelectionFunctions`

- `TransferFunctions`

- `StatefulFunctions`

- `IntegratorFunctions`

- `MemoryFunctions`

- `UserDefinedFunction`


* `Composition`
- `AutodiffComposition`
- `CompositionFunctionApproximator`
- `ParameterEstimationComposition`

* `Services`
- `Registry`
Expand Down
4 changes: 2 additions & 2 deletions docs/source/LearningMechanism.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Learning Mechanism
==================
LearningMechanism
=================

.. automodule:: psyneulink.core.components.mechanisms.modulatory.learning.learningmechanism
:members:
Expand Down
10 changes: 10 additions & 0 deletions docs/source/ParameterEstimationComposition.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ParameterEstimationComposition
==============================

.. toctree::
:maxdepth: 2

.. automodule:: psyneulink.core.compositions.parameterestimationcomposition
:members:
:private-members:
:exclude-members: _validate_params, run, evaluate
131 changes: 131 additions & 0 deletions freeze.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
aenum==2.2.3
alabaster==0.7.12
apipkg==1.5
appnope==0.1.0
attrs==19.3.0
autograd==1.3
Babel==2.8.0
backcall==0.1.0
beautifulsoup4==4.9.3
bleach==3.1.1
bokeh==2.2.3
certifi==2019.11.28
chardet==3.0.4
colorama==0.4.4
commonmark==0.9.1
coverage==5.4
cycler==0.10.0
decorator==4.4.2
defusedxml==0.6.0
dill==0.3.1.1
docutils==0.16
elfi==0.7.5
entrypoints==0.3
execnet==1.7.1
future==0.18.2
google==3.0.0
gprof2dot==2019.11.30
GPy==1.9.9
graph-scheduler==1.0.0
graphviz==0.13.2
grpcio==1.33.2
grpcio-tools==1.33.2
idna==2.9
imagesize==1.2.0
importlib-metadata==1.5.0
iniconfig==1.1.1
ipykernel==5.1.4
ipyparallel==6.2.4
ipython==7.13.0
ipython-genutils==0.2.0
ipywidgets==7.5.1
jedi==0.16.0
Jinja2==2.11.1
joblib==0.14.1
jsonschema==3.2.0
jupyter==1.0.0
jupyter-client==6.0.0
jupyter-console==6.1.0
jupyter-core==4.6.3
kiwisolver==1.1.0
leabra-psyneulink==0.3.2
llvmlite==0.31.0
MarkupSafe==1.1.1
matplotlib==3.3.3
mistune==0.8.4
more-itertools==8.2.0
nbconvert==5.6.1
nbformat==5.0.4
networkx==1.11
notebook==6.0.3
numpy==1.18.1
packaging==20.3
pandas==1.2.3
pandocfilters==1.4.2
paramz==0.9.5
parso==0.6.2
pexpect==4.8.0
pickleshare==0.7.5
Pillow==7.0.0
Pint==0.17
pluggy==0.13.1
prometheus-client==0.7.1
prompt-toolkit==3.0.4
protobuf==3.14.0
psyneulink==0.7.5.4
psyneulink-sphinx-theme==1.1.3.0
ptyprocess==0.6.0
py==1.10.0
py-cpuinfo==5.0.0
pycodestyle==2.5.0
pydocstyle==5.0.2
Pygments==2.6.1
pyparsing==2.4.6
pyrsistent==0.15.7
pytest==6.2.2
pytest-benchmark==3.2.3
pytest-cov==2.11.1
pytest-forked==1.1.3
pytest-helpers-namespace==2019.1.8
pytest-profiling==1.7.0
pytest-pycharm==0.6.0
pytest-pycodestyle==2.2.0
pytest-pydocstyle==2.2.0
pytest-xdist==2.2.1
python-dateutil==2.8.1
pytz==2019.3
PyYAML==5.4.1
pyzmq==19.0.0
qtconsole==4.7.1
QtPy==1.9.0
requests==2.23.0
rich==10.1.0
scikit-learn==0.22.2.post1
scipy==1.4.1
Send2Trash==1.5.0
six==1.14.0
snowballstemmer==2.0.0
soupsieve==2.0.1
Sphinx==3.5.4
sphinx-autodoc-typehints==1.10.3
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==1.0.3
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.4
terminado==0.8.3
testpath==0.4.4
toml==0.10.2
toolz==0.10.0
toposort==1.4
torch==1.4.0
tornado==6.0.4
traitlets==4.3.3
typecheck-decorator==1.2
typing-extensions==3.7.4.3
urllib3==1.25.8
wcwidth==0.1.8
webencodings==0.5.1
widgetsnbextension==3.5.1
zipp==3.1.0
1 change: 1 addition & 0 deletions psyneulink/core/components/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,7 @@ def _get_values(p):
return (param,)
elif p.name == 'num_estimates':
return 0 if param is None else param
# FIX: ADD num_trials_per_estimate HERE 11/3/21
elif p.name == 'matrix': # Flatten matrix
return tuple(np.asfarray(param).flatten())
return _convert(param)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ class Concatenate(CombinationFunction): # -------------------------------------

.. _Concatenate:

Concatenates items in outer dimension (axis 0) of of `variable <Concatenate.variable>` into a single array,
Concatenates items in outer dimension (axis 0) of `variable <Concatenate.variable>` into a single array,
optionally scaling and/or adding an offset to the result after concatenating.

`function <Concatenate.function>` returns a 1d array with lenght equal to the sum of the lengths of the items
`function <Concatenate.function>` returns a 1d array with length equal to the sum of the lengths of the items
in `variable <Concatenate.variable>`.

Arguments
Expand Down
Loading