556bfe20bd5f08b1f841296aca064f126080cfd2,nilmtk/metrics.py,,mean_normalized_error_power,#Any#Any#,118
Before Change
sum_of_ground_truth_power = 0.0
for aligned_meters_chunk in align_two_meters(pred_meter,
ground_truth_meter):
diff = aligned_meters_chunk.icol(0) - aligned_meters_chunk.icol(1)
total_abs_diff += sum(abs(diff.dropna()))
sum_of_ground_truth_power += aligned_meters_chunk.icol(1).sum()
mne[pred_meter.instance()] = total_abs_diff / sum_of_ground_truth_power
return pd.Series(mne)
After Change
sum_of_ground_truth_power = 0.0
for aligned_meters_chunk in align_two_meters(pred_meter,
ground_truth_meter):
diff = aligned_meters_chunk.iloc[:, 0] - aligned_meters_chunk.iloc[:, 1]
total_abs_diff += sum(abs(diff.dropna()))
sum_of_ground_truth_power += aligned_meters_chunk.iloc[:, 1].sum()
mne[pred_meter.instance()] = total_abs_diff / sum_of_ground_truth_power
return pd.Series(mne)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances
Project Name: nilmtk/nilmtk
Commit Name: 556bfe20bd5f08b1f841296aca064f126080cfd2
Time: 2018-03-18
Author: 10246101+PMeira@users.noreply.github.com
File Name: nilmtk/metrics.py
Class Name:
Method Name: mean_normalized_error_power
Project Name: nilmtk/nilmtk
Commit Name: 556bfe20bd5f08b1f841296aca064f126080cfd2
Time: 2018-03-18
Author: 10246101+PMeira@users.noreply.github.com
File Name: nilmtk/metrics.py
Class Name:
Method Name: rms_error_power
Project Name: nilmtk/nilmtk
Commit Name: 556bfe20bd5f08b1f841296aca064f126080cfd2
Time: 2018-03-18
Author: 10246101+PMeira@users.noreply.github.com
File Name: nilmtk/metrics.py
Class Name:
Method Name: f1_score