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:
            raise StopIteration

After Change


        if self.steps is None:
            window = int(max(0.1 * hist.size // self.every, 2.0))
        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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: pymc-devs/pymc3
Commit Name: 61e9af1a3757a8b75e86777bdfa341ef112a31d1
Time: 2018-01-26
Author: aloctavodia@gmail.com
File Name: pymc3/step_methods/smc.py
Class Name: SMC
Method Name: calc_beta


Project Name: pymc-devs/pymc3
Commit Name: 53eaac804522b516438762c1db1d31d43dda0254
Time: 2016-09-05
Author: colin@kensho.com
File Name: pymc3/diagnostics.py
Class Name:
Method Name: geweke