crowdkit.aggregation.image_segmentation.segmentation_rasa.SegmentationRASA | Source code
SegmentationRASA(self,n_iter: int = 10,tol: float = 1e-05)
Segmentation RASA - chooses a pixel if sum of weighted votes of each workers' more than 0.5.
Algorithm works iteratively, at each step, the workers are reweighted in proportion to their distances to the current answer estimation. The distance is considered as . Modification of the RASA method for texts.
Jiyi Li. A Dataset of Crowdsourced Word Sequences: Collections and Answer Aggregation for Ground Truth Creation.
Proceedings of the First Workshop on Aggregating and Analysing Crowdsourced Annotations for NLP, pages 24–28 Hong Kong, China, November 3, 2019.
A number of iterations.
Tasks' segmentations. A pandas.Series indexed by
import numpy as npimport pandas as pdfrom crowdkit.aggregation import SegmentationRASAdf = pd.DataFrame([['t1', 'p1', np.array([[1, 0], [1, 1]])],['t1', 'p2', np.array([[0, 1], [1, 1]])],['t1', 'p3', np.array([[0, 1], [1, 1]])]],columns=['task', 'worker', 'segmentation'])result = SegmentationRASA().fit_predict(df)
Last updated: March 31, 2023