fit_predict

crowdkit.aggregation.classification.majority_vote.MajorityVote.fit_predict | Source code

fit_predict(
self,
data: DataFrame,
skills: Optional[Series] = None
)

Fits the model to the training data and returns the aggregated results.

Parameters description

ParametersTypeDescription
dataDataFrame

The training dataset of workers' labeling results which is represented as the pandas.DataFrame data containing task, worker, and label columns.

skillsOptional[Series]

The workers' skills. The pandas.Series data is indexed by worker and has the corresponding worker skill.

  • Returns:

    The task labels. The pandas.Series data is indexed by task so that labels.loc[task] is the most likely true label of tasks.

  • Return type:

    Series

Last updated: March 31, 2023

Crowd-Kit
Overview
Reference
Aggregation
Datasets
Learning
Metrics
Postprocessing