Skip to content
Logistic Regression from Crowds
Julia Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
crowds
data
.DS_Store
LICENSE
README.rst
VERSION
common.jl
demo.jl
logistic_regression.jl
logreg_crowds.jl
types.jl

README.rst

LogReg-Crowds -- Logistic Regression from Crowds

LogReg-Crowds is a collection of Julia implementations of various approaches for learning a logistic regression model multiple annotators and crowds, namely the works of:

All implementations are able to handle multi-class problems and do not require repeated labelling (i.e. annotators do not have to provide labels for the entire dataset). The code was though for interpretability and it is well commented, so that it can be very easy to use (kindly see the file "demo.jl"). At the same, the Julia language provides it with a great perfomance, specially when compared to other scientific languages such as MATLAB or Python/Numpy, without compromising its high-level and interpretability.

Copyright (c) 2015 Filipe Rodrigues

This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License, version 3, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Appropriate reference to this software should be made when describing research in which it played a substantive role, so that it may be replicated and verified by others.

Basic Usage

Include the LogReg-Crowds package:

include("logreg_crowds.jl")
using LogisticRegressionCrowds

Load the multi-annotator dataset:

# an example multi-annotator dataset
X = readdlm("data/fisheriris.csv", ',')
Y = readdlm("data/fisheriris_labels_ma_missing.csv", ',')

Learn the model:

est_weights, est_annotators_acc, est_groundtruth = LogisticRegressionCrowds.learn(X, Y, method="raykar", w_prior=1.0, pi_prior=0.01, max_em_iters=10)

Make predictions:

predictions, predictive_probabilities = predict(X, est_weights)
println("predictive accuracy: ", accuracy(predictions, y))

See the file "demo.jl" for a complete example.

You can’t perform that action at this time.