`NILMTK_FILENAME = r'F:\Project\DataSet\Redd\redd_my.h5'
SAMPLE_PERIOD = 6
STRIDE = None
APPLIANCES = ['light']
WINDOWS = {
'train': {
1: ("2011-04-19", "2011-05-21"),
2: ("2011-04-19", "2013-05-01"),
3: ("2011-04-19", "2013-05-26"),
6: ("2011-05-22", "2011-06-14"),
},
'unseen_activations_of_seen_appliances': {
1: ("2011-04-19", None),
2: ("2011-04-19", None),
3: ("2011-04-19", None),
6: ("2011-05-22", None),
},
'unseen_appliances': {
5: ("2011-04-19", None)
}
}
get the dictionary of activations for each appliance
activations = load_nilmtk_activations(
appliances=APPLIANCES,
filename=NILMTK_FILENAME,
sample_period=SAMPLE_PERIOD,
windows=WINDOWS
)
------------
get pipeline for the fridge example
------------
num_seq_per_batch = 16
target_appliance = 'light'
seq_length = 512
train_buildings = [1, 2, 3, 6]
unseen_buildings = [5]
DATA_FOLD_NAMES = (
'train', 'unseen_appliances', 'unseen_activations_of_seen_appliances')
and got this error report
File "C:\Users\Abrelo\Anaconda3\envs\tensorflow\lib\site-packages\neuralnilm\data\realaggregatesource.py", line 191, in _remove_activations_with_no_mains
self.target_appliance]
KeyError: 'light' `
but it works fine for fridge and not for others including light. How can I fix this error?
Thanks
@tperol
@kyu0110
@vasios
`NILMTK_FILENAME = r'F:\Project\DataSet\Redd\redd_my.h5'
SAMPLE_PERIOD = 6
STRIDE = None
APPLIANCES = ['light']
WINDOWS = {
'train': {
1: ("2011-04-19", "2011-05-21"),
2: ("2011-04-19", "2013-05-01"),
3: ("2011-04-19", "2013-05-26"),
6: ("2011-05-22", "2011-06-14"),
},
'unseen_activations_of_seen_appliances': {
1: ("2011-04-19", None),
2: ("2011-04-19", None),
3: ("2011-04-19", None),
6: ("2011-05-22", None),
},
'unseen_appliances': {
5: ("2011-04-19", None)
}
}
get the dictionary of activations for each appliance
activations = load_nilmtk_activations(
appliances=APPLIANCES,
filename=NILMTK_FILENAME,
sample_period=SAMPLE_PERIOD,
windows=WINDOWS
)
------------
get pipeline for the fridge example
------------
num_seq_per_batch = 16
target_appliance = 'light'
seq_length = 512
train_buildings = [1, 2, 3, 6]
unseen_buildings = [5]
DATA_FOLD_NAMES = (
'train', 'unseen_appliances', 'unseen_activations_of_seen_appliances')
and got this error reportFile "C:\Users\Abrelo\Anaconda3\envs\tensorflow\lib\site-packages\neuralnilm\data\realaggregatesource.py", line 191, in _remove_activations_with_no_mains
self.target_appliance]
KeyError: 'light' `
but it works fine for fridge and not for others including light. How can I fix this error?
Thanks
@tperol
@kyu0110
@vasios