sudais14446
initial commit
83039b5
raw
history blame contribute delete
122 Bytes
import torch
def normPRED(d):
ma = torch.max(d)
mi = torch.min(d)
dn = (d - mi) / (ma - mi)
return dn