Skip to content

Conversation

@shchur
Copy link
Contributor

@shchur shchur commented Aug 11, 2025

Issue #, if available:

Description of changes:

  • Add dataset adapter for darts.TimeSeries data format.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@shchur shchur requested a review from abdulfatir August 11, 2025 13:29
values=np.stack([past_i[col] for col in target_column], axis=1).astype("float32"),
static_covariates=pd.Series({col: past_i[col] for col in static_columns}),
components=target_column,
fillna_value=0.0,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a better imputation method available?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, we can actually keep the NaN values as-is here and let the user replace them later with something like https://unit8co.github.io/darts/generated_api/darts.utils.missing_values.html.

@shchur shchur merged commit 35bd3b4 into main Aug 12, 2025
@shchur shchur deleted the add-darts-adapter branch August 12, 2025 06:28
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

Successfully merging this pull request may close these issues.

2 participants