add_skills_to_data

crowdkit.aggregation.utils.add_skills_to_data | Source code

add_skills_to_data(
data: DataFrame,
skills: Series,
on_missing_skill: str,
default_skill: Optional[float]
)

Parameters description

ParametersTypeDescription
skillsSeries

workers' skills. A pandas.Series index by workers and holding corresponding worker's skill

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.

Last updated: March 31, 2023

Crowd-Kit
Overview
Reference
Aggregation
Datasets
Learning
Metrics
Postprocessing