I'm getting started with R, I really like it but recently I found myself in a corner. I'd like to build neural network model that predicts heat consumption. I have historical data that contains outside air temperature (model input) and heat demand values (model output) in megawatts (hourly data from past 4 years). I would like to use my model to predict heat demand for 24h ahead based on air temperature weather forecast (also 24 hours ahead). Here is my code:
data <- read.delim("C:/.../data.csv", dec=",")
require(neuralnet)
trainset<-data[1:26208,]
testset<-data[26209:26232,]
net<-neuralnet(heat~temp,trainset,hidden=5,threshold=0.01)
.. and I get error that 'algorithm did not converge'
This is my first attempt to build model. That's why I want to use only one input parameter (air temperature), In the future, I would like to use few more inputs like wind speed, info about working days and holidays and so on. Do you have any idea what I did wrong? Is it the problem with number of hidden neurons or layers? I also tried to use other values of parameter 'hidden' and I still got errors.
Here is my dataset: click
Thank you in advance for your help.