moscot.utils.subset_policy.TriangularPolicy.create_masks¶
- TriangularPolicy.create_masks(discard_empty=True)¶
Create masks based on the policy graph.
- Parameters:
discard_empty (
bool
) – Whether to remove empty masks.- Return type:
Dict
[Tuple
[TypeVar
(K
, bound=Hashable
),TypeVar
(K
, bound=Hashable
)],Tuple
[Union
[ndarray
[tuple
[int
,...
],dtype
[floating
]],Array
],Union
[ndarray
[tuple
[int
,...
],dtype
[floating
]],Array
]]]- Returns:
: Masks for each edge in the policy graph.