ellisp / forecastxgb-r-package

An R package for time series models and forecasts with xgboost compatible with {forecast} S3 classes
GNU General Public License v3.0
140 stars 42 forks source link

When I run the demo code, an error occurried - "result would be too long a vector" #33

Closed chaojieji closed 7 years ago

chaojieji commented 7 years ago

When I type the code - "model <- xgbar(gas)", some information about errors and warnings came out: "Error in begin_iteration:end_iteration : result would be too long a vector In addition: Warning messages: 1: 'early.stop.round' is deprecated. Use 'early_stopping_rounds' instead. See help("Deprecated") and help("xgboost-deprecated"). 2: In min(cv$test.rmse.mean) : no non-missing arguments to min; returning Inf 3: In min(which(cv$test.rmse.mean == min(cv$test.rmse.mean))) : no non-missing arguments to min; returning Inf" This's my first attempt in R and forecastxgb, so I have no idea about how to handle it. Is it possible to help me ? Thank you.