2c16357cf3b2a5b1265caf7d89703ef253e39df3,nilmtk/stats/electricity/single.py,,missing_samples_per_period,#,239
Before Change
missing_samples = timestamps_of_missing_samples(data, max_sample_period,
window_start, window_end)
series = pd.Series(1, index=missing_samples)
return series.resample(rule=rule, how="sum")
def hours_on(series, on_power_threshold=DEFAULT_ON_POWER_THRESHOLD,
max_sample_period=None):
After Change
index = _get_index(data)
index = reframe_index(index, window_start, window_end)
n_samples_per_period = (pd.Series(1, index=index)
.resample(rule=rule, how="sum")
.fillna(0))
dropout_rate_per_period = 1 - (n_samples_per_period /
n_expected_samples_per_period)
return dropout_rate_per_period
def hours_on(series, on_power_threshold=DEFAULT_ON_POWER_THRESHOLD,
max_sample_period=None):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: nilmtk/nilmtk
Commit Name: 2c16357cf3b2a5b1265caf7d89703ef253e39df3
Time: 2014-01-07
Author: jack-list@xlk.org.uk
File Name: nilmtk/stats/electricity/single.py
Class Name:
Method Name: missing_samples_per_period
Project Name: commonsense/conceptnet5
Commit Name: de83e84dd87aef0dea564de76c648c72d0f6b5a1
Time: 2017-04-05
Author: rob@luminoso.com
File Name: conceptnet5/vectors/evaluation/analogy.py
Class Name:
Method Name: eval_google_analogies
Project Name: nilmtk/nilmtk
Commit Name: 88b9add78245b61ab67289055c30082aa0a29b2e
Time: 2014-11-27
Author: nipunreddevil@gmail.com
File Name: nilmtk/electric.py
Class Name: Electric
Method Name: switch_continuity_violations
Project Name: commonsense/conceptnet5
Commit Name: ebe6418f1ffc94dc7661abe765482f268d4b823a
Time: 2017-03-14
Author: joanna.teresa.duda@gmail.com
File Name: conceptnet5/vectors/evaluation/analogy.py
Class Name:
Method Name: eval_semeval2012_analogies