Closed edgBR closed 4 years ago
I have an idea. It was a breaking change that I made in this last version. While the input data to create_lagged_df()
can have the outcome in any position, the output of create_lagged_df()
moves the outcome to the first column in each dataset. From help("create_lagged_df")
.
The column index–an integer–of the target to be forecasted. If outcome_col != 1, the outcome column will be moved to position 1 and outcome_col will be set to 1 internally.
I can think of 1 or 2 more small potentially breaking changes that will appear for v1.0.0, at which point the API will be backward compatible, and any future breaking changes will be fully documented at a website.
Thanks for opening the issue.
Dear Nick,
I was trying to make some predictions in the training set with both lasso and xgboost. Lasso works perfectly but with xgboost I get the following error:
My column names in xgboost are as follows:
My grouping column "snsr_key" is missing there but I am not removing it in the training function:
I thought that the train_model functions was by default picking the groups attribute from the lagged dataframe but for some reason now is not working.
Do you have any idea of what is going wrong? This was working before in the 0.8.0 version.
BR /Edgar