Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Question: How to use Mosaic streaming with TimeseriesDataset and PyTorch Forecasting? #1684

Closed
KornkamonGib opened this issue Sep 23, 2024 · 1 comment

Comments

@KornkamonGib
Copy link

Hi, I'm working on forecasting daily product demand for a retailer using the Temporal Fusion Transformer (TFT) model from the PyTorch Forecasting library. My dataset is huge, with around 10 billion rows, and is stored in a Spark DataFrame on Databricks.

I'm encountering an issue when I try to convert the Spark DataFrame to Pandas, resulting in a "driver out of memory" error. To tackle this, I attempted to use Mosaic streaming for efficient data loading, but the challenge is that the TimeseriesDataset in PyTorch Forecasting requires a Pandas DataFrame.

Could anyone guide me on how to use Mosaic streaming with the TimeseriesDataset and PyTorch Forecasting? If possible, I'd greatly appreciate an example to understand how to apply it.

Thank you in advance!

@fkiraly
Copy link
Collaborator

fkiraly commented Sep 23, 2024

Hm, I see, thanks for asking, @KornkamonGib - it looks like the architecture is a bit unfortunate in how it is coupled to pandas. I have opened an issue to remove this coupling: #1685

Have you tried using the pyarrow integration, is that possible with the current interface even?

Also, since it is a question, I am moving it to the discussion forum.

@sktime sktime locked and limited conversation to collaborators Sep 23, 2024
@fkiraly fkiraly converted this issue into discussion #1686 Sep 23, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants