• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PrincetonUniversity / PsyNeuLink / 10356384483
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: devel
DEFAULT BRANCH: master
Ran 12 Aug 2024 05:54PM UTC
Jobs 1
Files 152
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Aug 2024 05:17PM UTC coverage: 83.913% (+0.1%) from 83.786%
10356384483

push

github

web-flow
Refactor/autodiff/track pnl (#3030)

• composition.py, autodiffcomposition.py and relevant subordinate methods:
 - implement synch and track parameter dictionaries that are passed to relevant methods
 
  - add/rename attributes:
    - PytorchCompositionWrapper:
      - retained_outputs
      - retained_targets
      - retained_losses
      - _nodes_to_execute_after_gradient_calc
    - PytorchMechanismWrapper:
      - value -> output
      - input
  - add methods:
    - synch_with_psyneulink(): centralize copying of params and values to pnl using methods below
    - copy_node_variables_to_psyneulink(): centralize updating of node (mech & comp) variables in PNL
    - copy_node_values_to_psyneulink(): centralize updating of node (mech & comp) values in PNL
    - copy_results_to_psyneulink(): centralize updating of autodiffcomposition.results
    - retain_in_psyneulink(): centralize tracking of pytorch results in PNL using methods below
    - retain_torch_outputs: keeps record of targets and copies to AutodiffComposition.pytorch_targets at end of call to learn()
    - retain_torch_targets: keeps record of targets and copies to AutodiffComposition.pytorch_targets at end of call to learn()
    - retain_torch_losses: keeps record of losses and copies to AutodiffComposition.pytorch_losses at end of call to learn()


• compositionrunner.py, autodiffcomposition.py, pytorchwrappers.py:
  - move loss tracking from parameter on autodiff to attribute on its pytorch_rep
  - batch_inputs():  add calls to synch_with_psyneulink() and retain_in_psyneulink()
  - batch_function_inputs():
     - needs calls to synch_with_psyneulink() and retain_in_psyneulink()

• composition.py:
- run(): add _update_results() as helper method than can be overidden (e.g., by autodiffcomposition) for less frequent updating

* • autodiffcomposition.py
  - restrict calls to copy_weights_to_psyneulink based on copy_parameters_to_psyneulink_after arg/attribute
 ... (continued)

11718 of 15076 branches covered (77.73%)

Branch coverage included in aggregate %.

373 of 406 new or added lines in 8 files covered. (91.87%)

4 existing lines in 3 files now uncovered.

32166 of 37221 relevant lines covered (86.42%)

0.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10356384483.1 12 Aug 2024 05:54PM UTC 0
83.91
GitHub Action Run
Source Files on build 10356384483
Detailed source file information is not available for this build.
  • Back to Repo
  • 7047302c on github
  • Prev Build on devel (#10293180939)
  • Next Build on devel (#10483519261)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc