fde4b1f40f02082b56e8af3c696b3f1b0cef7fa4,src/chaospy/orthogonal.py,,orth_chol,#Any#Any#Any#Any#Any#,265

Before Change


    L = chaospy.chol.gill_king(C)
    Li = numpy.linalg.inv(L.T).T
    if not normed:
        Li /= numpy.repeat(numpy.diag(Li), len(Li)).reshape(Li.shape)
    E_ = -numpy.sum(Li*chaospy.descriptives.E(basis, dist, **kws), -1)
    coefs = numpy.empty((N+1, N+1))
    coefs[1:,1:] = Li

After Change


    cholmat = chaospy.chol.gill_king(chaospy.descriptives.Cov(basis, dist))
    cholmat_inv = numpy.linalg.inv(cholmat.T).T
    if not normed:
        diag_mesh = numpy.repeat(numpy.diag(cholmat_inv), len(cholmat_inv))
        cholmat_inv /= diag_mesh.reshape(cholmat_inv.shape)

    coefs = numpy.empty((length+1, length+1))

    coefs[1:, 1:] = cholmat_inv
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: jonathf/chaospy
Commit Name: fde4b1f40f02082b56e8af3c696b3f1b0cef7fa4
Time: 2017-09-30
Author: jonathf@gmail.com
File Name: src/chaospy/orthogonal.py
Class Name:
Method Name: orth_chol


Project Name: keras-team/keras
Commit Name: e99eac292db998960b9c384cb1106998a8489b02
Time: 2017-03-06
Author: abhai.dilip@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: repeat_elements


Project Name: facebookresearch/Horizon
Commit Name: fd34c03630f969dee98b5cf7048523c5cfecbb0b
Time: 2019-12-13
Author: czxttkl@fb.com
File Name: ml/rl/test/evaluation/test_evaluation_data_page.py
Class Name: TestEvaluationDataPage
Method Name: test_seq2slate_eval_data_page


Project Name: pytorch/audio
Commit Name: 60a8e23d0171a809a08caf6cd4823ed7db4c50db
Time: 2020-07-15
Author: 855818+mthrok@users.noreply.github.com
File Name: test/common_utils/data_utils.py
Class Name:
Method Name: get_sinusoid


Project Name: allenai/allennlp
Commit Name: c84c714c64f85c01c2b748fd035a19e6e9154648
Time: 2018-03-05
Author: markn@allenai.org
File Name: allennlp/modules/seq2seq_encoders/multi_head_self_attention.py
Class Name: MultiHeadSelfAttention
Method Name: forward