crowdkit.aggregation.classification.gold_majority_vote.GoldMajorityVote.fit_predict
| Source code
fit_predict( self, data: DataFrame, true_labels: Series)
Fits the model to the training data and returns the aggregated results.
Parameters | Type | Description |
---|---|---|
data | DataFrame | The training dataset of workers' labeling results which is represented as the |
true_labels | Series | The ground truth labels of tasks. The |
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