warnings.filterwarnings("ignore")
from nilmtk.api import API
from nilmtk.disaggregate import Mean
from nilmtk_contrib.disaggregate import DAE, Seq2Point, Seq2Seq, RNN, WindowGRU
Using TensorFlow backend.
Started training for RNN
Joint training for RNN
............... Loading Data for training ...................
Loading data for REDD dataset
Loading building ... 1
Traceback (most recent call last):
File "nilmtk-contrib.py", line 63, in
api_res = API(redd)
File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/nilmtk/api.py", line 46, in init
self.experiment()
File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/nilmtk/api.py", line 91, in experiment
self.train_jointly(clf,d)
File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/nilmtk/api.py", line 212, in train_jointly
train_df = next(train.buildings[building].elec.mains().load(physical_quantity='power', ac_type=self.power['mains'], sample_period=self.sample_period))
File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/nilmtk/metergroup.py", line 699, in load
sections = kwargs.pop('sections', [self.get_timeframe()])
File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/nilmtk/metergroup.py", line 1387, in get_timeframe
timeframe = meter.get_timeframe()
File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/nilmtk/elecmeter.py", line 94, in get_timeframe
return self.store.get_timeframe(key=self.key)
File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/nilmtk/docinherit.py", line 53, in f
return self.mthd(obj, *args, **kwargs)
File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/nilmtk/datastore/hdfdatastore.py", line 222, in get_timeframe
data_start_date = self.store.select(key, [0]).index[0]
File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/pandas/io/pytables.py", line 757, in select
raise KeyError("No object named {key} in the file".format(key=key))
KeyError: 'No object named /building1/elec/meter1 in the file'
Closing remaining open files:./data/redd.h5...done/tmp/nilmtk-no6eom_n.h5...done
import warnings
warnings.filterwarnings("ignore") from nilmtk.api import API from nilmtk.disaggregate import Mean from nilmtk_contrib.disaggregate import DAE, Seq2Point, Seq2Seq, RNN, WindowGRU
redd = { 'power': { 'mains': ['apparent','active'], 'appliance': ['apparent','active'] }, 'sample_rate': 60,
} api_res = API(redd)
Using TensorFlow backend. Started training for RNN Joint training for RNN ............... Loading Data for training ................... Loading data for REDD dataset Loading building ... 1 Traceback (most recent call last): File "nilmtk-contrib.py", line 63, in
api_res = API(redd)
File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/nilmtk/api.py", line 46, in init
self.experiment()
File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/nilmtk/api.py", line 91, in experiment
self.train_jointly(clf,d)
File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/nilmtk/api.py", line 212, in train_jointly train_df = next(train.buildings[building].elec.mains().load(physical_quantity='power', ac_type=self.power['mains'], sample_period=self.sample_period)) File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/nilmtk/metergroup.py", line 699, in load sections = kwargs.pop('sections', [self.get_timeframe()]) File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/nilmtk/metergroup.py", line 1387, in get_timeframe timeframe = meter.get_timeframe() File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/nilmtk/elecmeter.py", line 94, in get_timeframe return self.store.get_timeframe(key=self.key) File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/nilmtk/docinherit.py", line 53, in f return self.mthd(obj, *args, **kwargs) File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/nilmtk/datastore/hdfdatastore.py", line 222, in get_timeframe data_start_date = self.store.select(key, [0]).index[0] File "/home/gowda/anaconda3/envs/nilm-contrib/lib/python3.7/site-packages/pandas/io/pytables.py", line 757, in select raise KeyError("No object named {key} in the file".format(key=key)) KeyError: 'No object named /building1/elec/meter1 in the file' Closing remaining open files:./data/redd.h5...done/tmp/nilmtk-no6eom_n.h5...done
Could anyone help in fixing this issue??