notani / python-glad

A Python Implementation of GLAD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-glad

A Python Implementation of GLAD.

GLAD

Algorithm for aggregating labels given by labeler more acculately than majority vote.

  • Whitehill, Jacob, et al. "Whose vote should count more: Optimal integration of labels from labelers of unknown expertise." Advances in neural information processing systems. 2009.

Dependency

  • numpy
  • scipy

Usage

$ python glad.py data/data.txt

Input Format

  First line:
    <numGivenLabels> <numLabelers> <numTasks> <Prior p(Z=1)>
  Following <numGivenLabels> lines:
    <taskId> <labelerId> <label:0|1>
  • The task IDs must be integers and must be 0....
  • The labeler IDs must be integers and must be 0....

About

A Python Implementation of GLAD


Languages

Language:Python 100.0%