forked from PrincetonUniversity/PsyNeuLink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tentative learning branch (PrincetonUniversity#2623)
* • composition.py: - add learning_results Parameter - learn now returns single trial of results (to match run()) - docstrings mods accordingly • compositionrunner.py: - run_learning(): - return last trial of execution (to match calls to Composition.run() - assign last epoch of results to Composition.learning_results The following tests were modified to accomodate the new return for call to learn() per above: • test_learning_output_shape() • test_xor_training_correctness STILL WORKING ON: • test_xor_nested_train_then_no_train * • composition.py: - Composition: added learning_results Parameter (used in compositionrunner.py) * - test_force_two_control_mechanisms_as_OUTPUT(): add ctl_mech_A to list of TERMINAL nodes THE FOLLOWING WERE modified to use new return value of compositionrunner.run_learning(): - test_learning_output_shape(): - test_xor_training_correctness: - test_semantic_net_training_correctness() - test_identicalness_of_input_types() - test_optimizer_specs() NEED WORK: J test_xor_nested_train_then_no_train() failing in _get_compilation_param(); problem with CompExecution_param_struct: {RuntimeError}(struct_89) <class 'RuntimeError'>: (struct_28) <class 'RuntimeError'>: (struct_5) <class 'TypeError'>: too many initializers ? due to addition of leraning_results Parameter to Composition? X test_call_after_construction_with_learning_pathway(): FAILING DUE TO VALUE MISMATCH (from allclose-changes; not due to learning_results * • compositionrunner.py - fix typo in run_learning() * [skip ci] • component.py - _get_compilation_params(): add learning_results to blacklist * [skip ci] • learning tests fixed to accomodate learning_results * - * • test_semantic_net_training_correctness(): add tolerance for testing * • test_semantic_net_training_correctness(): use pytest.helpers.llvm_current_fp_precision() == 'fp32' to accomodate tolerances
- Loading branch information
Showing
8 changed files
with
109 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters