b66acd1fc82ce746b837879efcf02a5f59f64eb0,helper/utilty.py,,compute_mse,#Any#Any#Any#,483
Before Change
mse = 0.0
for i in range(border_size, image1.shape[0] - border_size):
for j in range(border_size, image1.shape[1] - border_size):
for k in range(image1.shape[2]):
error = image1[i, j, k] - image2[i, j, k]
mse += error * error
return mse / ((image1.shape[0] - 2 * border_size) * (image1.shape[1] - 2 * border_size) * image1.shape[2])
def print_filter_weights(tensor):
After Change
shave = 6 + border_size
diff = np.subtract(image1, image2)
diff = diff[border_size:-border_size, border_size:-border_size, :]
mse = np.mean(np.square(diff))
return mse
def print_filter_weights(tensor):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
Instances
Project Name: jiny2001/dcscn-super-resolution
Commit Name: b66acd1fc82ce746b837879efcf02a5f59f64eb0
Time: 2018-04-15
Author: jin.yamanaka@gmail.com
File Name: helper/utilty.py
Class Name:
Method Name: compute_mse
Project Name: scikit-learn-contrib/DESlib
Commit Name: 85d5c30d2186d07857d1f0fb7c269eb08d2b7d79
Time: 2018-04-07
Author: rafaelmenelau@gmail.com
File Name: deslib/des/des_clustering.py
Class Name: DESClustering
Method Name: fit
Project Name: NifTK/NiftyNet
Commit Name: 6f98c641dc85bd665732e34acf61bc3e27cd9893
Time: 2017-05-25
Author: wenqi.li@ucl.ac.uk
File Name: nn/histogram_standardisation.py
Class Name:
Method Name: create_mapping_perc
Project Name: scikit-learn-contrib/DESlib
Commit Name: f0c15f219b0761b14329ddd416cda82fa4bae841
Time: 2018-03-28
Author: rafaelmenelau@gmail.com
File Name: deslib/dcs/mcb.py
Class Name: MCB
Method Name: estimate_competence