Skip to content
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

Error when running in M1 MAC #22

Open
RafaelOO opened this issue Oct 20, 2022 · 1 comment
Open

Error when running in M1 MAC #22

RafaelOO opened this issue Oct 20, 2022 · 1 comment
Assignees

Comments

@RafaelOO
Copy link

RafaelOO commented Oct 20, 2022

What code produced the error?

library(forecast)
library(M4metalearning)
load("model_M4.rda")
tr <- window(AirPassengers, end=c(1959, 12))
forecast_meta_M4(model_M4, tr, h=12)

What error produced?

Error in if (class(newdata) != "xgb.DMatrix") newdata <- xgb.DMatrix(newdata,  : 
  the condition has length > 1

This error seems to come from line 184 of file https://github.com/pmontman/customxgboost/blob/master/R/xgb.Booster.R .

Environment?

MAC book Pro. M1
RStudio 2022.07.2 Build 576
xgboost compiled after executing devtools::install_github("pmontman/customxgboost"). To compile the code, I used Xcode command line tools 14. I installed this package by downloading it from https://download.developer.apple.com/Developer_Tools/Command_Line_Tools_for_Xcode_14.0_Release_Candidate/Command_Line_Tools_for_Xcode_14_Release_Candidate.dmg

@jdclarke5
Copy link

jdclarke5 commented Mar 11, 2023

Just adding, after following https://github.com/robjhyndman/M4metalearning/blob/master/docs/M4_reprod.md today, I see the same error at step > forec_result <- forecast_meta_M4(model_M4, x, h=h) in a very different environment (below). It may be useful to know that the error is not unique to the above Mac env.

platform       x86_64-pc-linux-gnu
arch           x86_64
os             linux-gnu
system         x86_64, linux-gnu
status         Patched
major          4
minor          2.2
year           2022
month          11
day            10
svn rev        83330
language       R
version.string R version 4.2.2 Patched (2022-11-10 r83330)
nickname       Innocent and Trusting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants