21c16153ecd473a027df2af1e9a4fd3c71810e1a,pymc3/variational/callbacks.py,CheckLossConvergence,__call__,#CheckLossConvergence#Any#Any#Any#,26

Before Change


                / hist[-self.window_size-1:-1])
        mean = diff.mean()
        // unbiased std of mean
        std = diff.std() / (self.window_size - 1)**.5
        t = abs(mean / std)
        p = stats.t.cdf(t, df=self.window_size) - .5
        // 1 - confidence is lower allowed p
        if p < self.critical:

After Change


        else:
            window = int(max(0.1 * self.steps // self.every, 2.0))
        losses = hist[::self.every][-window:]
        diff = np.abs((losses[1:]-losses[:-1])/losses[:-1])
        mean = np.mean(diff)
        med = np.median(diff)
        if mean < self.tolerance or med < self.tolerance:
            raise StopIteration
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pymc-devs/pymc3
Commit Name: 21c16153ecd473a027df2af1e9a4fd3c71810e1a
Time: 2017-04-14
Author: maxim.v.kochurov@gmail.com
File Name: pymc3/variational/callbacks.py
Class Name: CheckLossConvergence
Method Name: __call__


Project Name: mariogeiger/se3cnn
Commit Name: 165efff251f4545db86e6df2c96ec2ba3e3fd4e3
Time: 2018-06-16
Author: geiger.mario@gmail.com
File Name: se3_cnn/SO3.py
Class Name:
Method Name: _test_spherical_harmonics


Project Name: mariogeiger/se3cnn
Commit Name: 165efff251f4545db86e6df2c96ec2ba3e3fd4e3
Time: 2018-06-16
Author: geiger.mario@gmail.com
File Name: se3_cnn/SO3.py
Class Name:
Method Name: _test_irr_repr_are_representation