SegmentationMajorityVote

crowdkit.aggregation.image_segmentation.segmentation_majority_vote.SegmentationMajorityVote

SegmentationMajorityVote(
    self,
    on_missing_skill: str = 'error',
    default_skill: Optional[float] = None
)

Majority Vote - chooses a pixel if more than half of performers voted

Doris Jung-Lin Lee. 2018. Quality Evaluation Methods for Crowdsourced Image Segmentation http://ilpubs.stanford.edu:8090/1161/1/main.pdf

Parameters Description

ParametersTypeDescription
segmentations_Series

Tasks segmentations A pandas.Series indexed by task such that labels.loc[task] is the taskss aggregated segmentation.

on_missing_skillstr
How to handle assignments done by workers with unknown skill Possible values:
  • "error" — raise an exception if there is at least one assignment done by user with unknown skill;
  • "ignore" — drop assignments with unknown skill values during prediction. Raise an exception if there is no assignments with known skill for any task;
  • value — default value will be used if skill is missing.
ParametersTypeDescription
segmentations_Series

Tasks segmentations A pandas.Series indexed by task such that labels.loc[task] is the taskss aggregated segmentation.

on_missing_skillstr
How to handle assignments done by workers with unknown skill Possible values:
  • "error" — raise an exception if there is at least one assignment done by user with unknown skill;
  • "ignore" — drop assignments with unknown skill values during prediction. Raise an exception if there is no assignments with known skill for any task;
  • value — default value will be used if skill is missing.