spacecutter icon indicating copy to clipboard operation
spacecutter copied to clipboard

some question about the code

Open Shu-HowTing opened this issue 7 months ago • 1 comments

class OrdinalLogisticModel(nn.Module):
"""
 Parameters
    ----------
    predictor : nn.Module
        When called, must return a torch.FloatTensor with shape [batch_size, 1]
"""

hello , thank u for sharing! I have a question here. why return a torch.FloatTensor with shape [batch_size, 1]. Shouldn't it be return a torch.FloatTensor with shape [batch_size, num_class - 1]?

Shu-HowTing avatar Jul 05 '24 08:07 Shu-HowTing