The BCC model class.
More...
|
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 |
|
CrowdsourcingModels.BCC.BCC |
( |
| ) |
|
|
inline |
Creates a BCC model instance.
virtual void CrowdsourcingModels.BCC.AttachData |
( |
int |
taskIndices[][], |
|
|
int |
workerLabels[][] |
|
) |
| |
|
inlineprotectedvirtual |
Attachs the data to the workers labels.
- Parameters
-
taskIndices | The matrix of the task indices (columns) of each worker (rows). |
workerLabels | The 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
-
taskIndices | The matrix of the task indices (columns) of each worker (rows). |
workerLabels | The matrix of the labels (columns) of each worker (rows). |
confusionMatrixPrior | The 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
-
taskCount | The number of tasks. |
labelCount | The number of labels. |
Reimplemented in CrowdsourcingModels.CBCC.
virtual void CrowdsourcingModels.BCC.DefineGenerativeProcess |
( |
| ) |
|
|
inlineprotectedvirtual |
virtual void CrowdsourcingModels.BCC.DefineInferenceEngine |
( |
| ) |
|
|
inlineprotectedvirtual |
virtual void CrowdsourcingModels.BCC.DefineVariablesAndRanges |
( |
int |
taskCount, |
|
|
int |
labelCount |
|
) |
| |
|
inlineprotectedvirtual |
Initializes the ranges of the variables.
- Parameters
-
taskCount | The number of tasks. |
labelCount | The 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.
Infers the posteriors of BCC using the attached data and priors.
- Parameters
-
taskIndices | The matrix of the task indices (columns) of each worker (rows). |
workerLabels | The matrix of the labels (columns) of each worker (rows). |
priors | The priors of the BCC parameters. |
- Returns
Reimplemented in CrowdsourcingModels.CBCC.
virtual void CrowdsourcingModels.BCC.SetPriors |
( |
int |
workerCount, |
|
|
BCCPosteriors |
priors |
|
) |
| |
|
inlineprotectedvirtual |
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 documentation for this class was generated from the following file:
- C:/Users/Matteo/Source/Repos/active-crowd/CrowdsourcingModels/BCC.cs