ActiveCrowdToolkit  0.1
CrowdsourcingModels.BCC Class Reference

The BCC model class. More...

Inheritance diagram for CrowdsourcingModels.BCC:
CrowdsourcingModels.CBCC

Public Member Functions

 BCC ()
 Creates a BCC model instance. More...
 
virtual void CreateModel (int taskCount, int labelCount)
 Initializes the ranges, the generative process and the inference engine of the BCC model. More...
 
virtual BCCPosteriors Infer (int[][] taskIndices, int[][] workerLabels, BCCPosteriors priors)
 Infers the posteriors of BCC using the attached data and priors. More...
 
Dirichlet[] GetConfusionMatrixPrior ()
 Returns the confusion matrix prior of each worker. More...
 

Protected Member Functions

virtual void DefineVariablesAndRanges (int taskCount, int labelCount)
 Initializes the ranges of the variables. More...
 
virtual void DefineGenerativeProcess ()
 Defines the BCC generative process. More...
 
virtual void DefineInferenceEngine ()
 Initializes the BCC inference engine. More...
 
virtual void SetPriors (int workerCount, BCCPosteriors priors)
 Sets the priors of BCC. More...
 
virtual void AttachData (int[][] taskIndices, int[][] workerLabels)
 Attachs the data to the workers labels. More...
 
virtual void AttachData (int[][] taskIndices, int[][] workerLabels, Dirichlet[][] confusionMatrixPrior)
 Attachs the data to the workers labels with and sets the workers' confusion matrix priors. More...
 

Protected Attributes

Range n
 
Range k
 
Range c
 
Range kn
 
Variable< int > WorkerCount
 
VariableArray< int > TrueLabel
 
VariableArray< int > WorkerTaskCount
 
VariableArray< VariableArray< int >, int[][]> WorkerTaskIndex
 
VariableArray< VariableArray< int >, int[][]> WorkerLabel
 
Variable< Vector > BackgroundLabelProb
 
VariableArray< VariableArray< Vector >, Vector[][]> WorkerConfusionMatrix
 
Variable< bool > Evidence
 
Variable< Dirichlet > BackgroundLabelProbPrior
 
VariableArray< VariableArray< Dirichlet >, Dirichlet[][]> ConfusionMatrixPrior
 
VariableArray< Discrete > TrueLabelConstraint
 
Variable< Bernoulli > EvidencePrior
 
InferenceEngine Engine
 

Properties

int LabelCount [get]
 The number of label values. More...
 
int TaskCount [get]
 The number of tasks. More...
 
double InitialWorkerBelief [get, set]
 
int NumberOfIterations [get, set]
 The number of inference iterations. More...
 

Detailed Description

The BCC model class.

Constructor & Destructor Documentation

CrowdsourcingModels.BCC.BCC ( )
inline

Creates a BCC model instance.

Member Function Documentation

virtual void CrowdsourcingModels.BCC.AttachData ( int  taskIndices[][],
int  workerLabels[][] 
)
inlineprotectedvirtual

Attachs the data to the workers labels.

Parameters
taskIndicesThe matrix of the task indices (columns) of each worker (rows).
workerLabelsThe matrix of the labels (columns) of each worker (rows).

Reimplemented in CrowdsourcingModels.CBCC.

virtual void CrowdsourcingModels.BCC.AttachData ( int  taskIndices[][],
int  workerLabels[][],
Dirichlet  confusionMatrixPrior[][] 
)
inlineprotectedvirtual

Attachs the data to the workers labels with and sets the workers' confusion matrix priors.

Parameters
taskIndicesThe matrix of the task indices (columns) of each worker (rows).
workerLabelsThe matrix of the labels (columns) of each worker (rows).
confusionMatrixPriorThe workers' confusion matrix priors.
virtual void CrowdsourcingModels.BCC.CreateModel ( int  taskCount,
int  labelCount 
)
inlinevirtual

Initializes the ranges, the generative process and the inference engine of the BCC model.

Parameters
taskCountThe number of tasks.
labelCountThe number of labels.

Reimplemented in CrowdsourcingModels.CBCC.

virtual void CrowdsourcingModels.BCC.DefineGenerativeProcess ( )
inlineprotectedvirtual

Defines the BCC generative process.

Reimplemented in CrowdsourcingModels.CBCC.

virtual void CrowdsourcingModels.BCC.DefineInferenceEngine ( )
inlineprotectedvirtual

Initializes the BCC inference engine.

Reimplemented in CrowdsourcingModels.CBCC.

virtual void CrowdsourcingModels.BCC.DefineVariablesAndRanges ( int  taskCount,
int  labelCount 
)
inlineprotectedvirtual

Initializes the ranges of the variables.

Parameters
taskCountThe number of tasks.
labelCountThe number of labels.

Reimplemented in CrowdsourcingModels.CBCC.

Dirichlet [] CrowdsourcingModels.BCC.GetConfusionMatrixPrior ( )
inline

Returns the confusion matrix prior of each worker.

Returns
The confusion matrix prior of each worker.
virtual BCCPosteriors CrowdsourcingModels.BCC.Infer ( int  taskIndices[][],
int  workerLabels[][],
BCCPosteriors  priors 
)
inlinevirtual

Infers the posteriors of BCC using the attached data and priors.

Parameters
taskIndicesThe matrix of the task indices (columns) of each worker (rows).
workerLabelsThe matrix of the labels (columns) of each worker (rows).
priorsThe priors of the BCC parameters.
Returns

Reimplemented in CrowdsourcingModels.CBCC.

virtual void CrowdsourcingModels.BCC.SetPriors ( int  workerCount,
BCCPosteriors  priors 
)
inlineprotectedvirtual

Sets the priors of BCC.

Parameters
workerCountThe number of workers.
priorsThe priors.

Reimplemented in CrowdsourcingModels.CBCC.

Property Documentation

int CrowdsourcingModels.BCC.LabelCount
get

The number of label values.

int CrowdsourcingModels.BCC.NumberOfIterations
getset

The number of inference iterations.

int CrowdsourcingModels.BCC.TaskCount
get

The number of tasks.


The documentation for this class was generated from the following file: