Toloka documentation


crowdkit.aggregation.utils.add_skills_to_data | Source code

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

Parameters Description

Parameters Type Description
skills Series

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

on_missing_skill str

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.