File size: 122 Bytes
83039b5
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import torch


def normPRED(d):
    ma = torch.max(d)
    mi = torch.min(d)

    dn = (d - mi) / (ma - mi)

    return dn