我有一个样本数据如下
item.train
units tmax tmin tavg dewpoint wetbulb heat cool snowfall preciptotal
0 52 31 42 36 40 23 0 0 0.050
0 50 31 41 26 35 24 0 0 0.010
0 32 11 22 4 18 43 0 0 0.000
0 28 9 19 -1 14 46 0 0 0.000
0 38 25 32 13 25 33 0 0 0.000
0 46 25 36 21 29 29 0 NA 0.005
stnpressure resultspeed RA BR FZ FG SN TS
29.78 3.6 1 1 1 1 0 0
29.44 9.8 0 0 0 0 0 0
29.67 10.8 0 0 0 0 0 0
29.86 6.3 0 0 0 0 0 0
29.67 6.9 0 0 0 0 0 0
29.68 0.3 0 0 0 0 1 0
我正在尝试执行神经网络
library(neuralnet)
neural.pred = neuralnet(units ~ tmax+tmin+tavg+dewpoint+wetbulb+heat+cool+snowfall+
preciptotal+stnpressure+resultspeed+
RA+BR+FZ+FG+SN+TS,
data = item.train, linear.output = TRUE, hidden = c(5, 5), err.fct = "sse", rep = 100)
而R给我一个错误
x - y中的错误:不一致的数组
帮助我解决我的代码或数据有什么问题,以及如何解决它