delta.data.estimate_seg2D_classweights¶
- delta.data.estimate_seg2D_classweights(mask_path: str, sample_size: Optional[int] = None) Tuple[float, float]¶
Estimate the weights to assign each class in the weight maps
- Parameters
- mask_pathstr
Path to folder containing segmentations.
- sample_sizeint, optional
Determines the size of the training set that will be used to calcualte class weights. The default is None.
- Returns
- class1float
weight of class 1.
- class2float
weight of class 2.