b523b464d8cafe29e352981c1c6df941f205592a,nilmtk/metrics.py,,mean_normalized_error_power,#Any#Any#,109
Before Change
df_appliances_ground_truth[appliance].values))
denominator[appliance] = np.sum(
df_appliances_ground_truth[appliance].values)
mne[appliance] = numerator[appliance] * 1.0 / denominator[appliance]
return mne
After Change
// TODO: need to resample to keep things in step
mne = {}
for meter in predictions.submeters():
ground_truth_meter_identifier = meter.identifier._replace(
dataset=ground_truth.dataset())
ground_truth_meter = ground_truth[ground_truth_meter_identifier]
sections = meter.good_sections()
sample_period = meter.sample_period()
period_alias = "{:d}S".format(sample_period)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: nilmtk/nilmtk
Commit Name: b523b464d8cafe29e352981c1c6df941f205592a
Time: 2014-07-09
Author: jack-list@xlk.org.uk
File Name: nilmtk/metrics.py
Class Name:
Method Name: mean_normalized_error_power
Project Name: stanford-mast/nn_dataflow
Commit Name: 7b9de034f66722286b586d96e691fa72bc5c968e
Time: 2017-05-30
Author: mgao12@stanford.edu
File Name: nn_dataflow/LoopBlockingScheme.py
Class Name: LoopBlockingScheme
Method Name: verify_fetch
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: d714ddfc3fe09ad81e8dbb010c91c6bbfa373976
Time: 2015-01-26
Author: connormccoy@google.com
File Name: perfkitbenchmarker/benchmarks/mesh_benchmark.py
Class Name:
Method Name: Run
Project Name: pantsbuild/pants
Commit Name: bf7263d00ed6f78f319cae03cc9cfe0c82d4aee4
Time: 2019-06-04
Author: etyurina@twitter.com
File Name: src/python/pants/reporting/zipkin_reporter.py
Class Name: ZipkinReporter
Method Name: start_workunit