logit vs. log probability in powerset to multilabel conversion #1703
-
In the def to_multilabel(self, powerset: torch.Tensor, soft: bool = False) -> torch.Tensor:
"""Convert predictions from powerset to multi-label
Parameter
---------
powerset : (batch_size, num_frames, num_powerset_classes) torch.Tensor
Soft predictions in "powerset" space.
soft : bool, optional
Return soft multi-label predictions. Defaults to False (i.e. hard predictions)
Assumes that `powerset` are "logits" (not "probabilities").
Returns
-------
multi_label : (batch_size, num_frames, num_classes) torch.Tensor
Predictions in "multi-label" space.
""" As I understand, logits (ranging from -inf to +inf) are the values in the model before applying the activation function. In case of the I was confused by the use of the term "logit" in the docstring. Isn't "log probabilities" the correct term here? Thank you :D |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You are right. PR to fix the docstring very welcome! |
Beta Was this translation helpful? Give feedback.
You are right. PR to fix the docstring very welcome!