---
title: "Comment by John Rambo on \"Time Series Forecasting Lab (Part 6) - Stacked Ensembles\" | Hashnode"
description: "Hi Boris, From where comes submodels_resamples_kfold_tbl in &#39;Time Series Forecasting Lab (Part 6) - Stacked Ensembles&#39; ? I&#39;m currently using time_se"
url: "https://hashnode.com/posts/time-series-forecasting-lab-part-6-stacked-ensembles/61e5ecea00c806252387c7ea/comment/61ec80fea12088017fbea8b3"
---

[Discussion](https://hashnode.com/posts/time-series-forecasting-lab-part-6-stacked-ensembles/61e5ecea00c806252387c7ea)

Comment [Time Series Forecasting Lab (Part 6) - Stacked Ensembles](https://hashnode.com/posts/time-series-forecasting-lab-part-6-stacked-ensembles/61e5ecea00c806252387c7ea)

[John Rambo](https://hashnode.com/@Hansxy)

[Jan 22, 2022](https://hashnode.com/posts/time-series-forecasting-lab-part-6-stacked-ensembles/61e5ecea00c806252387c7ea/comment/61ec80fea12088017fbea8b3)

Hi Boris, From where comes submodels\_resamples\_kfold\_tbl in 'Time Series Forecasting Lab (Part 6) - Stacked Ensembles' ? I'm currently using time\_series\_cv(), which seems to be wrong. Could you provide the complete script in cronological order e.g. on Github? [https://github.com/guzu92/courses](https://hashnode.com/posts/time-series-forecasting-lab-part-6-stacked-ensembles/61e5ecea00c806252387c7ea/comment/Link)

[Boris Guarisma](https://hashnode.com/@bguarisma)

[Jan 23, 2022](https://hashnode.com/posts/time-series-forecasting-lab-part-6-stacked-ensembles/61e5ecea00c806252387c7ea/comment/61ec80fea12088017fbea8b3#reply-61ed1daba12088017fbeb6ee)

Hi John, thank you for your message. Indeed, I forgot to explain how the resampled predictions are obtained, I have inserted a new code snippet above, see "Generate predictons for meta-learners". Use function modeltime\_fit\_resamples() which uses the k-fold resamples from vfold\_cv().

[John Rambo](https://hashnode.com/@Hansxy)

[Jan 23, 2022](https://hashnode.com/posts/time-series-forecasting-lab-part-6-stacked-ensembles/61e5ecea00c806252387c7ea/comment/61ec80fea12088017fbea8b3#reply-61ed457d5fbc177f9f3b6ed3)

[Boris Guarisma](https://hashnode.com/@bguarisma) Hello, this is different from Matt's documentation pages. I never attended his labs and have to compare/test your code against my self-thought construction. Till now, I get different .resample\_results objects per model and therefor not all predictions for the metalearner. Thank you for your writings.

[Boris Guarisma](https://hashnode.com/@bguarisma)

[Jan 26, 2022](https://hashnode.com/posts/time-series-forecasting-lab-part-6-stacked-ensembles/61e5ecea00c806252387c7ea/comment/61ec80fea12088017fbea8b3#reply-61f10e37e247b2151e620b6c)

[John Rambo](https://hashnode.com/@Hansxy) Thanks ! FYI the article has been updated, mostly at the end (final forecast) where I've skipped an important part.
