32cf78d9b668f197318b7ac7e2403506f7a167e6,mushroom_rl/solvers/lqr.py,,compute_lqr_Q,#Any#Any#Any#,98

Before Change



    
    M = _compute_lqr_Q_matrix(lqr, K)
    return -s.T @ M @ s


def compute_lqg_Q(s, lqr, K, Sigma):
    

After Change



    M = _compute_lqr_Q_matrix(lqr, K)
    m = lambda x, y: x.T @ M @ x
    return -1. * pairwise_distances(s, metric=m).diagonal().reshape((-1, 1))


def compute_lqg_Q(s, lqr, K, Sigma):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 32cf78d9b668f197318b7ac7e2403506f7a167e6
Time: 2020-05-13
Author: joao.ac.carvalho@gmail.com
File Name: mushroom_rl/solvers/lqr.py
Class Name:
Method Name: compute_lqr_Q


Project Name: deepfakes/faceswap
Commit Name: 7bdaa81cbef16d3626b3044bfe5c279120a9c0a0
Time: 2019-09-28
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/model/initializers.py
Class Name: ConvolutionAware
Method Name: _symmetrize


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 32cf78d9b668f197318b7ac7e2403506f7a167e6
Time: 2020-05-13
Author: joao.ac.carvalho@gmail.com
File Name: mushroom_rl/solvers/lqr.py
Class Name:
Method Name: compute_lqr_V