995de0f3992eb2bbc2c31b289f8d02149068dcaa,GPy/util/warping_functions.py,TanhWarpingFunction_d,f_inv,#TanhWarpingFunction_d#Any#Any#Any#,204

Before Change



        z = z.copy()
        if y is None:
            y = np.ones_like(z)

        it = 0
        update = np.inf

        while it == 0 or (np.abs(update).sum() > 1e-10 and it < max_iterations):
            update = (self.f(y) - z)/self.fgrad_y(y)
            y -= update
            it += 1
        if it == max_iterations:

After Change



        z = z.copy()
        if y is None:
            y = np.ones_like(z) * 0.1
            //y = np.zeros_like(z)

        it = 0
        update = np.inf
        //import ipdb; ipdb.set_trace()

        while it == 0 or (np.abs(update).sum() > 1e-10 and it < max_iterations):
            fy = self.f(y)
            fgrady = self.fgrad_y(y)
            update = (fy - z)/fgrady
            y -= update
            it += 1
            //print it
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: SheffieldML/GPy
Commit Name: 995de0f3992eb2bbc2c31b289f8d02149068dcaa
Time: 2015-08-05
Author: daniel.e.beck@gmail.com
File Name: GPy/util/warping_functions.py
Class Name: TanhWarpingFunction_d
Method Name: f_inv


Project Name: rodluger/starry
Commit Name: 3b02145b520529cf8ce794446b6e55a6ac36f07d
Time: 2019-04-16
Author: foreman.mackey@gmail.com
File Name: exoplanet_doppler.py
Class Name:
Method Name:


Project Name: apache/incubator-tvm
Commit Name: 28057b86600d323117d929ed21bd716ae557b79e
Time: 2020-05-10
Author: siju.samuel@huawei.com
File Name: python/tvm/relay/op/_tensor_grad.py
Class Name:
Method Name: atan_grad