-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Training multiple buildings #9
Comments
Hi Im having the same error, so i went to the This lead me to think that the pandas error is not related with the function, or that part of the function, but for some reason it always points there. Im not certain of anything anyways :( Let me know if the same happens to you! |
Hello Tomas, I have also tried to play with the train across buildings. Here is how I tried to "debug" the function
If you look at the Series that are created, you will notice for house 3, if I am not mistaken, you get an empty dataframe, where you cannot calculate the maximum value. I believe that is the core of the error. Let me know if you get something similar. |
Hmm Nonetheless, that's not my case (i don't have an empty dataframe) and i'm still having problems. I changed the code as u suggested to
and training with three houses i got
For some reason my code is now running a bit past that, it entered into the
Let me know if you get here or if you don't get rid of the pandas error. |
Hello everybody and sorry for the late reply. Which dataset are you using? For UKDALE, building 3 there is no data for the specified date range
This may explain the empty dataframe. |
Hi Ody! |
I managed to fix it by changing the for loop inside the train_across_buildings_chunk as follows:
from the pandas Series, we needed only the values in order to reshape. Tomas if you just change the Now the script is iterating over the batches. I will let you know regarding the progress. |
I am not sure whether the toolkit detects common sections within building. Also by removing the limit, you are now getting all of the data available for each building. |
@TomasSalvadores Your problem seems different than the one mentioned by the OP, please open a new issue and describe your problem in order to be able to discuss it. |
You are right. I am just using all of the data available for each building. Sorry for any confusion :) |
@anasvaf Thanks, you saved my day! Although I think there is an error in your code, I had to change |
Hi @OdysseasKr, @anasvaf, @maechler, @TomasSalvadores ========== TRAIN ============ AttributeError Traceback (most recent call last) ~\Anaconda3\envs\nilmtk-env\lib\site-packages\pandas\core\generic.py in getattr(self, name) AttributeError: 'Series' object has no attribute 'reshape' During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) ~\daedisaggregator.py in train_across_buildings(self, mainlist, meterlist, epochs, batch_size, **load_kwargs) ~\daedisaggregator.py in train_across_buildings_chunk(self, mainchunks, meterchunks, epochs, batch_size) ~\Anaconda3\envs\nilmtk-env\lib\site-packages\numpy\core\fromnumeric.py in reshape(a, newshape, order) ~\Anaconda3\envs\nilmtk-env\lib\site-packages\numpy\core\fromnumeric.py in _wrapfunc(obj, method, *args, **kwds) ~\Anaconda3\envs\nilmtk-env\lib\site-packages\numpy\core\fromnumeric.py in _wrapit(obj, method, *args, **kwds) ~\Anaconda3\envs\nilmtk-env\lib\site-packages\pandas\core\series.py in array_wrap(self, result, context) ~\Anaconda3\envs\nilmtk-env\lib\site-packages\pandas\core\series.py in init(self, data, index, dtype, name, copy, fastpath) ValueError: Length of passed values is 64, index implies 32768 Please you guys suggest how to fix the problem. Best, |
where can i download redd dataset? |
Hello Odyssea,
I am trying to replicate the results based on the Kelly et al. paper.
Using your code I changed the train building to the following:
and then I call the train_across_buildings
I am creating lists for the 4 houses that I need during the training but I get the following error when I run the RNN for the function "train_across_buildings"
Could you give me some hint on how to change the code?
Best,
Tasos
The text was updated successfully, but these errors were encountered: