-
Notifications
You must be signed in to change notification settings - Fork 31
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
Devel #3129
base: master
Are you sure you want to change the base?
Conversation
Updates the requirements on [optuna](https://github.com/optuna/optuna) to permit the latest version. - [Release notes](https://github.com/optuna/optuna/releases) - [Commits](optuna/optuna@v4.0.0...v4.1.0) --- updated-dependencies: - dependency-name: optuna dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Results, errors, warning, are testid independently for each value of tested softmax_choice parameter. Signed-off-by: Jan Vesely <[email protected]>
Signed-off-by: Jan Vesely <[email protected]>
Simplify implementation. Handle multidimensional arrays. Signed-off-by: Jan Vesely <[email protected]>
…ent (#3112) Fixes: ticket #106903 Signed-off-by: Jan Vesely <[email protected]>
Parameter.set checks for Component values assigned after its owning Component's __init__ so that the assigned Components can be shaped compatibly and set up for later context initialization. Check for ContextFlags.INITIALIZED initialization_status instead of is_initialized, because is_initialized also considers any initialization context, not just the status of having completed Component.__init__
• transformfunctions.py - MatrixTransform: allow normaliation for L0 • emcomposition.py - enforce normalize_memories for len(keys)==1 • test_emcomposition.py - test_simple_execution_without_learning(): add tests for scalar keys & use of L0 in MatrixTransform
nedbat/coveragepy#1891 Signed-off-by: Jan Vesely <[email protected]>
* • emcomposition.py - add field_weights setter and getter - field_weights_setter(): check that value node is not be assigned a weight • mechanism.py Mechanism_Base.execute(): add check whether any input_ports have default_input set in determining whether or not to to call _update_input_ports
* • recurrenttransfermechanism.py - _instantiate_attributes_after_function(): fix assignment of StabilityFunction, and force update of default_variable for output_port • _instantiate_attributes_after_function: revise call to _update_default_variable to use energy.variable instead of value * • test_recurrent_transfer_mechanism.py - TestStandardOutputPorts: test_rtn_energy() test_rtn_entropy() * • recurrenttransfermechanism.py _instantiate_attributes_after_function(): refactor to assign functions for ENERGY and ENTROPY standard_output_ports before call to super()
otherwise, calls to execute with no input may ignore port default_input in favor of execution with Mechanism.defaults.variable
if a port has default_input, this value should be used instead of any values from incoming projections
Updates the requirements on [grpcio](https://github.com/grpc/grpc) to permit the latest version. - [Release notes](https://github.com/grpc/grpc/releases) - [Changelog](https://github.com/grpc/grpc/blob/master/doc/grpc_release_schedule.md) - [Commits](grpc/grpc@v1.67.0...v1.68.0) --- updated-dependencies: - dependency-name: grpcio dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Jan Vesely <[email protected]>
The other modes will be update to match generalized Python behaviour. Signed-off-by: Jan Vesely <[email protected]>
…ISTIC Allow output of multiple extremes. Enable tests. Still TODO: * mode==DETERMINISTIC * tie==RANDOM (only used with mode==DETERMINISTIC) * 2d arguments Signed-off-by: Jan Vesely <[email protected]>
Not needed since OneHot now supports all modes != DETERMINISTIC Cleanup codestyle. Signed-off-by: Jan Vesely <[email protected]>
Remove call_elementwise_operation helper. Signed-off-by: Jan Vesely <[email protected]>
…DETERMINISTIC mode Drop random_state and seed if "tie" is not RANDOM Signed-off-by: Jan Vesely <[email protected]>
Use "recursive_iterate_arrays" to support 2d input. Signed-off-by: Jan Vesely <[email protected]>
Change test name to include "int32" Use np.uint32 type for numpy PRNG Signed-off-by: Jan Vesely <[email protected]>
Uses Lemire's algorithm [0]. Applies to Philox PRNG using "integers" API call, "randint" uses older, "masked rejection sampling" approach. [0] https://arxiv.org/abs/1805.10941 Signed-off-by: Jan Vesely <[email protected]>
Uses bit masked rejection sampling of lower bits. Matches to Numpy's Random.randint API call. Signed-off-by: Jan Vesely <[email protected]>
Signed-off-by: Jan Vesely <[email protected]>
It no longer needs to fit search for extreme values. Signed-off-by: Jan Vesely <[email protected]>
Signed-off-by: Jan Vesely <[email protected]>
Refactor Python OneHot implementation. Add tests for OneHot(mode=DETERMINISTIC). Refactor compiled OneHot to isolate PROB and PROB_INDICATOR. Convert recursive traversal of arrays from generator to context manager. Implement compiled random integer generation for bounded integers. Implement all OneHot modes in compiled mode.
* • emcomposition.py _parse_fields: clean up assignment of self.num_fields • test_emcomposition.py add test_assign_field_weights_and_0_vs_None() add test_field_weights_all_None_and_or_0 • emcomposition.py - revamp docstring to document new mods - add fields arg to specify field_naes, field_weights, learn_field_weights - implement fields arg to specify field_names, field_weights, learn_field_weights in dict format - implement support for field-specific learn_field_weight specifications - _identify_target_nodes(): refactor to use target_fields instead of learn_field_weights - add target_fields to fields specification dict - add dict spec for entries in fields arg - start adding field_idx to all components - add self._field_index_map • pytorchEMcompositionwrapper.py - store_memory(): use self._field_index_map to assign memories to fields • test_emcomposition.py - test_backpropagation_of_error_in_learning(): use EGO model to test for error backpropagation through EMCompoistion - test_field_args_and_map_assignments(): flesh out _field_index_map validation * • emcomposition.py - update docstring figs - add purge_by_field_weights Parameter * • autodiffcomposition.py - infer_backpropagation_learning_pathways(): add NodeRole.BIAS to pathways consructed for learning
* • emcomposition.py - add field class - refactor to use fields for all node attributes/arrays
* • emcomposition.py assign memory indices in field-order • test_emcomposition.py - test_order_fields_in_memory
# elif isinstance(matrix, ParameterPort): | ||
# pass |
Check notice
Code scanning / CodeQL
Commented-out code Note
# except: | ||
# raise ShowGraphError(f"Problem displaying graph for {composition.name}") |
Check notice
Code scanning / CodeQL
Commented-out code Note
@@ -193,10 +193,11 @@ | |||
|
|||
from psyneulink.core import llvm as pnlvm | |||
from psyneulink.core.components.component import _get_parametervalue_attr | |||
from psyneulink.core.components.functions.nonstateful.transferfunctions import Linear |
Check notice
Code scanning / CodeQL
Cyclic import Note
psyneulink.core.components.functions.nonstateful.transferfunctions
@@ -193,10 +193,11 @@ | |||
|
|||
from psyneulink.core import llvm as pnlvm | |||
from psyneulink.core.components.component import _get_parametervalue_attr | |||
from psyneulink.core.components.functions.nonstateful.transferfunctions import Linear |
Check notice
Code scanning / CodeQL
Unused import Note
from psyneulink.core.components.functions.nonstateful.transformfunctions import LinearCombination | ||
from psyneulink.core.components.functions.function import Function, get_matrix | ||
from psyneulink.core.components.functions.nonstateful.learningfunctions import Hebbian | ||
from psyneulink.core.components.functions.nonstateful.objectivefunctions import Stability | ||
from psyneulink.core.components.functions.nonstateful.objectivefunctions import Stability, Energy, Entropy |
Check notice
Code scanning / CodeQL
Cyclic import Note
psyneulink.core.components.functions.nonstateful.objectivefunctions
from psyneulink.core.components.functions.nonstateful.transformfunctions import LinearCombination | ||
from psyneulink.core.components.functions.function import Function, get_matrix | ||
from psyneulink.core.components.functions.nonstateful.learningfunctions import Hebbian | ||
from psyneulink.core.components.functions.nonstateful.objectivefunctions import Stability | ||
from psyneulink.core.components.functions.nonstateful.objectivefunctions import Stability, Energy, Entropy |
Check notice
Code scanning / CodeQL
Unused import Note
from psyneulink.core.compositions import NodeRole | ||
from psyneulink.core.compositions.showgraph import ShowGraph, SHOW_JUST_LEARNING_PROJECTIONS | ||
from psyneulink.core.compositions.showgraph import ShowGraph, SHOW_JUST_LEARNING_PROJECTIONS, SHOW_LEARNING |
Check notice
Code scanning / CodeQL
Unused import Note
from psyneulink.core.globals.keywords import BOLD, NESTED, INSET | ||
from psyneulink.core.llvm import ExecutionMode | ||
from psyneulink.core.globals.context import ContextFlags, handle_external_context | ||
from psyneulink.core.globals.keywords import BOLD, INSET, NESTED, PNL |
Check notice
Code scanning / CodeQL
Unused import Note
Import of 'INSET' is not used.
Import of 'NESTED' is not used.
This PR causes the following changes to the html docs (ubuntu-latest-3.11):
See CI logs for the full diff. |
* • emcomposition.py fix bug in field.memories property • test_emcomposition.py test_order_fields_in_memory: add tests for field.type and memory alignment
This PR causes the following changes to the html docs (ubuntu-latest-3.11):
See CI logs for the full diff. |
avoid duplication
version is unavailable. match exclusion in other workflows
- exclude unavailable macos-11 on py3.7 - add matrix.dist to test result artifact to avoid duplication
This PR causes the following changes to the html docs (ubuntu-latest-3.11):
See CI logs for the full diff. |
No description provided.