01c2aa38bde1f3b97360204cae96076db04c9c95,gpflow/transforms.py,Logistic,__init__,#Logistic#Any#Any#,152
Before Change
s(x) = 1 / (1 + \exp(-x))
def __init__(self, a=0., b=1.):
Transform.__init__(self)
assert b > a
self.a, self.b = float(a), float(b)
def forward_tensor(self, x):
After Change
s(x) = 1 / (1 + \exp(-x))
def __init__(self, a=0., b=1.):
if a >= b:
raise ValueError("a must be smaller than b")
self.a, self.b = float(a), float(b)
def forward_tensor(self, x):
ex = tf.exp(-x)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: GPflow/GPflow
Commit Name: 01c2aa38bde1f3b97360204cae96076db04c9c95
Time: 2017-11-23
Author: st--@users.noreply.github.com
File Name: gpflow/transforms.py
Class Name: Logistic
Method Name: __init__
Project Name: cornellius-gp/gpytorch
Commit Name: 529456c17464022d42e1c343bec52f2d4d77e79b
Time: 2018-10-29
Author: balandat@fb.com
File Name: gpytorch/likelihoods/multitask_gaussian_likelihood.py
Class Name: HomoskedasticMultitaskGaussianLikelihood
Method Name: __init__
Project Name: brian-team/brian2
Commit Name: 92ecb0dde22753c80b52964bd56d9c9d7ee46215
Time: 2013-07-08
Author: marcel.stimberg@ens.fr
File Name: brian2/codegen/functions/numpyfunctions.py
Class Name: FunctionWrapper
Method Name: __init__
Project Name: GPflow/GPflow
Commit Name: 5b1654914ef36dc22f5a9a1ee132c8e323603b24
Time: 2017-11-06
Author: st@prowler.io
File Name: gpflow/transforms.py
Class Name: Logistic
Method Name: __init__