I have the same problem like Ali in May 2011. Solution?
The fun (genPredictors.m) it showed the errors as shown below:
??? Input argument "data" is undefined.
Error in ==> genPredictors at 27
dates = datenum(data.Date, 'yyyy-mm-dd HH:MM:SS') + (data.Hour-1)/24;
Could you please kindly solve the problem?
Dear Ameya Deoras
I have a concern about the application made in matlab for forecasting electricity demand in the short term, I'm done my thesis basing on this application, my question is that amendments should do in the loadforecast function if I have variables temperature'm driving variables are: historical date, time and electrical demands from 2010 to 2013, and make the necessary modifications in the LoadScriptNN script and it worked perfectly but I loadforecast function does not work I get the forecast to zero .
I noticed for the genPredictors function, some of the inputs to the short term forecasting model is prevDaySameHourLoad and prev24HrAveLoad. It seems that the prev24HrAveLoad uses the current day load and averages it on a 24 hour basis and the prevDaySameHourLoad uses the load from the previous day. I m not sure how these 2 inputs can be used to predict the next day load forecast for the ANN model. For example if today is Sunday and I want to predict the load for tomorrow (Monday) and I m running the load forecast application today at 1 PM, I can't use prevDaySameHourLoad as an input because Sunday is the previous day for the forecasted day Monday and I wouldn't have the 24 hour historical data for Sunday as I m running the program at 1PM on Sunday, so data from 1 PM up to midnight is unknown. Second the prev24HrAveLoad input depends on the actual load data for that day, which for this example would be the load data that I m forecasting for the next day (Monday). I m not sure how these 2 inputs can be used to predict the day ahead load if it requires historical data that you might not have yet.
When running the forecaster, I find that each time I run the codes, I get a different forecast/model for the loads. Is there a way to guarantee a consistent forecast model or is this always the case given that the neural network may be ending in a different local minima. Thank you for your help.
could you please tell me what did you mean by daily5dayHighAve and daily5dayLowAve in the genpredictor function?
% Long Term Forecast Predictors
X = [data.DryBulb data.DewPnt daily5dayHighAve daily5dayLowAve data.Hour dayOfWeek isWorkingDay];