Hi could u help understand the below peace of code.
Why do we subtract the elements in linkmat ,then concatinating them .
Isnt just cutpoints-X is sufficient ?
sigmoids=cutpoints-X
link_mat = sigmoids[:, 1:] - sigmoids[:, :-1]
link_mat = torch.cat((
sigmoids[:, [0]],
link_mat,
(1 - sigmoids[:, [-1]])
),
dim=1
Hi could u help understand the below peace of code.
Why do we subtract the elements in linkmat ,then concatinating them .
Isnt just cutpoints-X is sufficient ?