forecastxgb-r-package
forecastxgb-r-package copied to clipboard
Training period
Hi. I'd like know if is possible change the training period in function xgbar.
you can subset the y using the function subset(y,start=11,end=19).
xgbar(subset(y,start=11,end=19))
Thanks a lot
Prof. Me. Matheus Henrique Dal Molin Ribeiro Vice-Coordenador do Curso de Licenciatura em Matemática Departamento de Matemática UTFPR - Pato Branco
2018-02-15 15:34 GMT-02:00 Nahuel Grasso [email protected]:
you can subset the y using the function subset(y,start=11,end=19).
xgbar(subset(y,start=11,end=19))
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ellisp/forecastxgb-r-package/issues/41#issuecomment-366003003, or mute the thread https://github.com/notifications/unsubscribe-auth/Agp6XZdwipcsx9OzMcLr2VVsWb01YXGMks5tVGqmgaJpZM4Q4JfM .
Hi.
I got it change the training period using the maxlag function. Using your sugestion, not was possible.
Prof. Me. Matheus Henrique Dal Molin Ribeiro Vice-Coordenador do Curso de Licenciatura em Matemática Departamento de Matemática UTFPR - Pato Branco
2018-02-15 15:48 GMT-02:00 Matheus Henrique Dal Molin Ribeiro < [email protected]>:
Thanks a lot
Prof. Me. Matheus Henrique Dal Molin Ribeiro Vice-Coordenador do Curso de Licenciatura em Matemática Departamento de Matemática UTFPR - Pato Branco
2018-02-15 15:34 GMT-02:00 Nahuel Grasso [email protected]:
you can subset the y using the function subset(y,start=11,end=19).
xgbar(subset(y,start=11,end=19))
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ellisp/forecastxgb-r-package/issues/41#issuecomment-366003003, or mute the thread https://github.com/notifications/unsubscribe-auth/Agp6XZdwipcsx9OzMcLr2VVsWb01YXGMks5tVGqmgaJpZM4Q4JfM .
I think the maxlag is used for other purpose. I think that, if the y is your training data (and is a ts object) and you want to shrink it, it may work with subset. Let's say you have monthly data (12 rows per year) from january 2014 to december 2017 and you want to train on data ranged from june 2014 to december 2016. your code would look like: xgbar(subset(y,start=6,end=36)) Thats my understanding.
Ok.
I understood.
I'll try do this.
Prof. Me. Matheus Henrique Dal Molin Ribeiro Vice-Coordenador do Curso de Licenciatura em Matemática Departamento de Matemática UTFPR - Pato Branco
2018-02-15 16:45 GMT-02:00 Nahuel Grasso [email protected]:
I think the maxlag is used for other purpose. I think that, if the y is your training data (and is a ts object) and you want to shrink it, it may work with subset. Let's say you have monthly data (12 rows per year) from january 2014 to december 2017 and you want to train on data ranged from june 2014 to december 2016. your code would look like: xgbar(subset(y,start=6,end=36)) Thats my understanding.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ellisp/forecastxgb-r-package/issues/41#issuecomment-366023102, or mute the thread https://github.com/notifications/unsubscribe-auth/Agp6XXIUCx5YdRJUnSocE6JJCaTmidU5ks5tVHtGgaJpZM4Q4JfM .
Let me know if it doesnt work and we will find a solution! ;)