1e15eeebbe3f9647f4a024ce9d44f5f6bb37b179,tsne/tsne.py,,gradient_descent,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,612

Before Change


            // Correct the KL divergence w.r.t. the exaggeration
            error = (error - np.sum(P) * np.log(exaggeration)) / exaggeration

            print("Iteration % 4d, error %.4f" % (iteration + 1, error))

        grad_direction_flipped = np.sign(update) != np.sign(gradient)
        grad_direction_same = np.invert(grad_direction_flipped)
        gains[grad_direction_flipped] += 0.2

After Change



        if should_call_callback:
            // Continue only if all the callbacks say so
            should_continue = all((bool(c(iteration + 1, error, embedding)) for c in callbacks))
            if not should_continue:
                // Make sure to un-exaggerate P so it"s not corrupted in future runs
                if exaggeration != 1:
                    P /= exaggeration
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pavlin-policar/openTSNE
Commit Name: 1e15eeebbe3f9647f4a024ce9d44f5f6bb37b179
Time: 2018-06-22
Author: pavlin.g.p@gmail.com
File Name: tsne/tsne.py
Class Name:
Method Name: gradient_descent


Project Name: dpressel/mead-baseline
Commit Name: e04ca1cfca8f2c7ae3918447fbd7c3b6aa1f2f59
Time: 2017-07-16
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/tagger/model.py
Class Name: RNNTaggerModel
Method Name: create


Project Name: dpressel/mead-baseline
Commit Name: e396c5bff8446972dedb13d06fc4acbbd3a8dd2d
Time: 2019-06-05
Author: dpressel@gmail.com
File Name: python/baseline/tf/tagger/train.py
Class Name:
Method Name: fit