WekaParams

WekaParams#

class squidpy.types.WekaParams[source]#

Parameters for WEKA-like trainable segmentation.

A TypedDict: pass a plain dict with any subset of these keys.

sigma_min: NotRequired[float]#

Smallest scale in the multiscale feature bank.

Default: 1.0

sigma_max: NotRequired[float]#

Largest scale in the multiscale feature bank.

Default: 16.0

edges: NotRequired[bool]#

Include edge features.

Default: True

pseudo_tissue_percentile: NotRequired[float]#

Percentile of distance-from-bg to label as tissue.

Default: 90.0

pseudo_min_pixels: NotRequired[int]#

Minimum number of tissue pixels to seed.

Default: 50

rf_estimators: NotRequired[int]#

Number of trees in the random forest.

Default: 100

rf_max_depth: NotRequired[int | None]#

Maximum tree depth; None for unlimited.

Default: 10

rf_max_samples: NotRequired[float]#

Fraction of samples drawn to train each tree.

Default: 0.05

rng: NotRequired[int | integer | Sequence[int] | SeedSequence | Generator | BitGenerator | None]#

Source of randomness; None draws from OS entropy.

Default: None

refine_with_classifier: NotRequired[bool]#

Run the second-stage background refinement.

Default: True

refine_n_samples_per_class: NotRequired[int]#

Training samples drawn per class in the refinement step.

Default: 50000

refine_bg_prob_threshold: NotRequired[float]#

Only drop pixels whose background probability exceeds this.

Default: 0.6