TransitionSpec
Describe an extra transition group to include during evaluation.
Attributes:
| Name | Type | Description |
|---|---|---|
kind |
Literal['pair', 'identity']
|
Either |
source |
str
|
Source class id. |
target |
str
|
Target class id. For |
symmetric |
bool
|
Whether to include both |
edges
Expand the spec into concrete directed transitions.
Returns:
| Type | Description |
|---|---|
FrozenSet[TransitionEdge]
|
A frozenset of |
Source code in gradiend/trainer/core/transition_selection.py
Related helpers: [pair()][gradiend.trainer.core.transition_selection.pair], [identity()][gradiend.trainer.core.transition_selection.identity].