VahadaneParams#
- class squidpy.types.VahadaneParams[source]#
Tuning knobs for Vahadane (sparse-NMF) stain-matrix fitting.
A
TypedDict: pass a plaindictwith any subset of these keys.- beta: NotRequired[float]#
Mean-absorbance cutoff selecting tissue pixels (optical-density space).
Default:
0.15
- lambda1: NotRequired[float]#
L1 sparsity regularisation on the concentration factor of the NMF.
Default:
0.1
- n_iter: NotRequired[int]#
Maximum NMF iterations.
Default:
200
- rng: NotRequired[int | integer | Sequence[int] | SeedSequence | Generator | BitGenerator | None]#
Source of randomness for NMF initialisation tie-breaking;
Nonedraws from OS entropy.Default:
None