forecastxgb-r-package icon indicating copy to clipboard operation
forecastxgb-r-package copied to clipboard

Training period

Open MRibeiro2107 opened this issue 7 years ago • 6 comments

Hi. I'd like know if is possible change the training period in function xgbar.

MRibeiro2107 avatar Dec 06 '17 16:12 MRibeiro2107

you can subset the y using the function subset(y,start=11,end=19).

xgbar(subset(y,start=11,end=19))

NahuelGrasso avatar Feb 15 '18 17:02 NahuelGrasso

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 .

MRibeiro2107 avatar Feb 15 '18 17:02 MRibeiro2107

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 .

MRibeiro2107 avatar Feb 15 '18 18:02 MRibeiro2107

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.

NahuelGrasso avatar Feb 15 '18 18:02 NahuelGrasso

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 .

MRibeiro2107 avatar Feb 15 '18 18:02 MRibeiro2107

Let me know if it doesnt work and we will find a solution! ;)

NahuelGrasso avatar Feb 15 '18 18:02 NahuelGrasso