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

PrincetonUniversity / PsyNeuLink / 14097180779
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: devel
DEFAULT BRANCH: master
Ran 27 Mar 2025 02:44AM UTC
Jobs 1
Files 160
Run time 2min
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

27 Mar 2025 01:56AM UTC coverage: 84.558% (+0.1%) from 84.42%
14097180779

push

github

web-flow
Feat/gru (#3234)

• implement GRUComposition class
  includes modifications to handling of BIAS nodes per below

• composition.py
  - correct errors for projections to/from nodes not in the Composition specific to BIAS Nodes
  - exclude BIAS Nodes as INPUT Nodes
  - exclude BIAS Nodes as OUTPUT Nodes 
  - add get_targets() method that returns nodes with NodeRole.TARGET
  - change name of NodeRole.TARGET Mechanisms to use _get_target_name = "TARGET for <Mechanism.name>" 
    add get_targets()  
  - fix bug in which specification of pathway with MappingProjection using sender of a nested Composition but no receiver (so it is placed in deferred_init) use primary OutputPort of the nested Composition's output_CIM, which may be incorrect

• mechanism.py
  _get_variable_from_input: modified to accomodate empty arrays (need for handling in AutodiffComposition)
  
• controlmechanism.py
    - use input_shapes for size of default (OUTCOME) InputPort (to accomodate vector GatingSignals)
      (note: if > 1 for ControlMechanism, causes error in compute_costs
             OK for GatingMechamism, which supports vector GatingSignals)

• port.py
  - _instantiate_projection_from_port(): get spec.reciever from _init_args if port is in deferred_init status
  
• autodiffcomposition.py
  - add torch_dtype attribute, set based on pytorchwrapper class being used (see below)
  - _get_autodiff_targets_values(), _get_autodiff_inputs_values():
    if torch_available, return formatted according to torch_dtype, otherwise return as np.ndarray  
  - refactored to take optmizer_params argument in constructor
  - _get_pytorch_backprop_pathway():  
    add direct Projection from node in outer composition to one to which it projects in nested Composition, so that it can be displayed by show_graph(show_pytorch=True) 

• pytorchwrappers.py:
  - add class attribute torch_dtype (and to sublcasses that need to override it, such as ptyrochGRUwrappers)
  - renamed following attributes as Prote... (continued)

9854 of 12898 branches covered (76.4%)

Branch coverage included in aggregate %.

970 of 1091 new or added lines in 24 files covered. (88.91%)

13 existing lines in 9 files now uncovered.

34379 of 39413 relevant lines covered (87.23%)

0.87 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
88.16
0.21% psyneulink/core/components/functions/nonstateful/transferfunctions.py
2
78.81
-0.45% psyneulink/core/components/mechanisms/modulatory/control/controlmechanism.py
2
89.38
0.0% psyneulink/core/components/mechanisms/modulatory/control/optimizationcontrolmechanism.py
2
75.0
0.0% psyneulink/core/components/projections/pathway/mappingprojection.py
2
77.78
psyneulink/library/compositions/emcomposition/__init__.py
2
92.31
psyneulink/library/compositions/emcomposition/pytorchEMcompositionwrapper.py
2
77.78
psyneulink/library/compositions/grucomposition/__init__.py
4
74.01
53.37% psyneulink/library/compositions/pytorchshowgraph.py
5
79.77
-0.27% psyneulink/core/components/ports/port.py
8
90.74
-0.12% psyneulink/core/compositions/composition.py
15
84.02
-0.38% psyneulink/library/compositions/autodiffcomposition.py
22
90.36
-1.2% psyneulink/library/compositions/pytorchwrappers.py
26
84.91
psyneulink/library/compositions/grucomposition/grucomposition.py
27
86.39
psyneulink/library/compositions/grucomposition/pytorchGRUwrappers.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
86.59
-0.04% psyneulink/core/components/component.py
1
79.77
-0.27% psyneulink/core/components/ports/port.py
1
75.0
0.0% psyneulink/core/components/projections/pathway/mappingprojection.py
1
83.61
-1.64% psyneulink/library/components/projections/pathway/autoassociativeprojection.py
1
84.77
0.04% psyneulink/library/compositions/compositionrunner.py
1
74.01
53.37% psyneulink/library/compositions/pytorchshowgraph.py
1
90.36
-1.2% psyneulink/library/compositions/pytorchwrappers.py
3
84.66
-0.31% psyneulink/core/components/mechanisms/mechanism.py
3
90.74
-0.12% psyneulink/core/compositions/composition.py
Jobs
ID Job ID Ran Files Coverage
1 14097180779.1 27 Mar 2025 02:44AM UTC 160
84.56
GitHub Action Run
Source Files on build 14097180779
  • Tree
  • List 160
  • Changed 22
  • Source Changed 0
  • Coverage Changed 22
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 110c0ae4 on github
  • Prev Build on devel (#13949532702)
  • Next Build on devel (#14209621584)
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