626173412d4281b693244e0705a787c4e7c08031,nilmtk/metrics.py,,fraction_energy_assigned_correctly,#,69
Before Change
df_appliances_ground_truth[appliance].values)
total_energy_ground_truth = np.sum(df_appliances_ground_truth.values)
fraction = np.append(
fraction, np.min(
[appliance_energy_predicted / total_energy_predicted,
appliance_energy_ground_truth /
total_energy_ground_truth
]))
return np.sum(fraction)
After Change
fractions = []
for meter_instance in predictions_submeters.instance():
fraction = min(fraction_per_meter_predictions[meter_instance],
fraction_per_meter_ground_truth[meter_instance])
fractions.append(fraction)
return sum(fractions)

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: nilmtk/nilmtk
Commit Name: 626173412d4281b693244e0705a787c4e7c08031
Time: 2014-07-09
Author: jack-list@xlk.org.uk
File Name: nilmtk/metrics.py
Class Name:
Method Name: fraction_energy_assigned_correctly
Project Name: suavecode/SUAVE
Commit Name: bdd28c5c3cd281b2af2b12e2d4fa6add40d36040
Time: 2020-08-13
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Methods/Geometry/Two_Dimensional/Cross_Section/Airfoil/import_airfoil_geometry.py
Class Name:
Method Name: import_airfoil_geometry
Project Name: david-abel/simple_rl
Commit Name: 335d758f3348cb2b7a1e03cb8248dfde39f8c439
Time: 2018-08-23
Author: david_abel@brown.edu
File Name: simple_rl/abstraction/state_abs/sa_helpers.py
Class Name:
Method Name: visualize_state_abstr_grid