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

AutoXGBoostCARMA fails #47

Closed
spsanderson opened this issue Jan 16, 2020 · 3 comments
Closed

AutoXGBoostCARMA fails #47

spsanderson opened this issue Jan 16, 2020 · 3 comments

Comments

@spsanderson
Copy link

I am using the AutoXGBoostCARMA to forecast a time series. Yet when I do I get the following failure:

Error in if (rng.nch[1] != rng.nch[2]) stop("'charvec' has non-NA entries of different number of characters") : 
  missing value where TRUE/FALSE needed
In addition: Warning messages:
1: In `[.data.table`(TestDataEval, , `:=`(Target, NULL)) :
  Column 'Target' does not exist to remove
2: In `[.data.table`(Preds, , `:=`(eval(DateColumnName), NULL)) :
  Column 'Date_Column' does not exist to remove

I run the following command:

AutoXGBoostCARMA(
  data = tidy_model_tbl
  , TargetColumnName = "Value"
  , DateColumnName = "Date_Column"
  , GroupVariables = "data_type"
  , FC_Periods = ifelse(time_param == "weekly", 52, 12)
  , TimeUnit = ifelse(time_param == "weekly", "week", "month")
)

My data is attached.
tidy_model_tbl.xlsx

@AdrianAntico
Copy link
Owner

@spsanderson Thanks for bringing this up. I have some upgrades for the carma functions that I'm going to be releasing soon.

@spsanderson
Copy link
Author

spsanderson commented Jan 31, 2020 via email

@AdrianAntico
Copy link
Owner

@spsanderson The AutoXGBoostCARMA() function is good to go. Keep in mind, there are some new arguments so check out the help file - I have an example setup of the function with the arguments grouped by purpose.

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

2 participants