Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
dustalov committed Jan 13, 2025
1 parent 9876ce0 commit 46ac2f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crowdkit/learning/conal.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _identity_init(shape: Union[Tuple[int, int], Tuple[int, int, int]]) -> torch
return torch.Tensor(out)


class CoNAL(nn.Module):
class CoNAL(nn.Module): # type: ignore[misc]
"""
Common Noise Adaptation Layers (CoNAL). This method introduces two types of confusions: worker-specific and
global. Each is parameterized by a confusion matrix. The ratio of the two confusions is determined by the
Expand Down
2 changes: 1 addition & 1 deletion crowdkit/learning/crowd_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def crowd_layer_vw_b(
return scale[workers] * outputs + bias[workers]


class CrowdLayer(nn.Module):
class CrowdLayer(nn.Module): # type: ignore[misc]
"""
CrowdLayer module for classification tasks.
Expand Down

0 comments on commit 46ac2f5

Please sign in to comment.