But why then I get so many falses and my outputs all come out as negative? What I do wrong? or is it something wrong with the metric?
It also seems like I am loosing some tensors when I use squeeze unsqueeze method. E.g. in your example ,
`labels = torch.tensor([1, 4, 1, 0, 5, 2]) 

tensor([[1., 1., 1., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0.]])`

so , all 5 values are being converted to 1s
while in my case
tensor([ 4,  2,  6, 10])
tensor([[ 4],
        [ 2],
        [ 6],
        [10]])
torch.Size([4, 1])
tensor([0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])

Only one is converted … I feel like that the problem is here