94c5667ff2687d202ba3cec4c1c918ae0ee271b8,skvideo/measure/viideo.py,,extract_aggd_features,#Any#,33

Before Change



def extract_aggd_features(imdata):

    if np.sum(np.abs(imdata)) == 0:
      return [np.inf]*6
    //flatten imdata
    imdata.shape = (len(imdata.flat),)

After Change


      gamma_hat = np.inf
    //solve r-hat norm

    imdata2_mean = np.mean(imdata2)
    if imdata2_mean != 0:
      r_hat = (np.average(np.abs(imdata))**2) / (np.average(imdata2))
    else:
      r_hat = np.inf
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: scikit-video/scikit-video
Commit Name: 94c5667ff2687d202ba3cec4c1c918ae0ee271b8
Time: 2016-12-11
Author: tgoodall@utexas.edu
File Name: skvideo/measure/viideo.py
Class Name:
Method Name: extract_aggd_features


Project Name: nipy/dipy
Commit Name: 33cdc0ba9dcad9db132205012ac9c6b015c50436
Time: 2017-06-20
Author: arokem@gmail.com
File Name: dipy/denoise/tests/test_lpca.py
Class Name:
Method Name: test_lpca_rmse


Project Name: nilearn/nilearn
Commit Name: 8ccd6c1ff65b95e02a6aa06bef618586f3c246a8
Time: 2012-10-10
Author: alexandre.abraham@cea.fr
File Name: plot_canica_resting_state.py
Class Name:
Method Name:


Project Name: shubhomoydas/ad_examples
Commit Name: f707bd92107953e6d8ba05d2dff3ee3133b2d805
Time: 2018-11-25
Author: smd.shubhomoydas@gmail.com
File Name: python/graph/simple_gcn.py
Class Name: SimpleGCN
Method Name: _fit