forward

crowdkit.learning.conal.CoNAL.forward | Source code

forward(
self,
embeddings: Tensor,
logits: Tensor,
workers: Tensor
)

Forward pass of the CoNAL module.

Parameters description

ParametersTypeDescription
embeddingsTensor

Tensor of shape (batch_size, embedding_size)

logitsTensor

Tensor of shape (batch_size, num_classes)

workersTensor

Tensor of shape (batch_size,) containing the worker IDs.

  • Returns:

    Tensor of shape (batch_size, 1) containing the predicted output probabilities.

  • Return type:

    Tensor

Last updated: March 31, 2023

Crowd-Kit
Overview
Reference
Aggregation
Datasets
Learning
Metrics
Postprocessing