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

Custom Weighting in ensemble_weighted Function with Multiple Models #259

Open
dmresearch15 opened this issue Dec 15, 2024 · 0 comments
Open

Comments

@dmresearch15
Copy link

Hi,

I am referencing the example from this article on autoregressive machine learning using m4_monthly data.

Instead of using fixed loadings like loadings = c(4, 6), I would like to assign different weights for each time series across models. Below is a sample loadData data frame illustrating the intended structure:

loadData <- expand.grid(
series = c("M1", "M2", "M750", "M1000"),
model = c("glmnet", "xgboost")
)
loadData$weight <- c(0.4, 0.5, 0.6, 0.9, 0.6, 0.5, 0.4, 0.1)
loadData

For example:
• series = M1, model = glmnet, weight = 0.4
• series = M1, model = xgboost, weight = 0.6

Could you advise how to implement this custom weighting setup within the ensemble_weighted function?

Thank you very much for your guidance.

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

1 participant