예제 #1
0
파일: uniform.py 프로젝트: xdcesc/chainer
 def cdf(self, x):
     return clip.clip((x - self.loc) / self.scale, 0., 1.)
예제 #2
0
def hard_sigmoid(x):
    return clip.clip(x * 0.2 + 0.5, 0.0, 1.0)
예제 #3
0
 def cdf(self, x):
     return clip.clip((x - self.low) / (self.high - self.low), 0., 1.)
예제 #4
0
파일: sgu.py 프로젝트: musyoku/NLP
def hard_sigmoid(x):
    return clip.clip(x * 0.2 + 0.5, 0.0, 1.0)