Questions tagged [u8darts]
43 questions
5
votes
2 answers
Exporting forecast data from darts
I am trying to export the forecasts I made with Pytorch models in darts library to some exchangeable format like XLS or CSV.
Is it somehow possible to export the predictions from the Timeseries class? How can I specify output format?

TheMP
- 8,257
- 9
- 44
- 73
2
votes
3 answers
Multi covariate time series forecast using Darts
I am trying to use the tutorial here, where we have two covariates to predict the target.
The tutorial uses .stack() to add two covariates together. It is not clear to me how to use this function to add more than two covariates to the model.
I tried…

M.M
- 1,343
- 7
- 20
- 49
2
votes
1 answer
How to suppress PyTorch Lightning Logging Output in DARTs
I am using the python DARTs package, and would like to run the prediction method without generating output logs. I appear unable to do so; all of the suggestions I've seen do not work, even when I attempt to apply them to DARTs source code.
Here is…

Josh Purtell
- 334
- 2
- 10
2
votes
1 answer
Create weekly time series with DARTS from dataframe
How to create a time series with darts having weekly frequency?
When having weekly data as follows:
import pandas as pd
df = pd.DataFrame({
'Date' : [
pd.to_datetime('2022-12-05'),
pd.to_datetime('2022-12-12'),
…

PeCaDe
- 277
- 1
- 8
- 33
2
votes
2 answers
Multiple-series training input is giving NaN loss while same data but One-serie training input is not
I want to train a N-Beats time series model using Darts. I have a time serie DataFrame for each users so I want to use Multiple-Series training but when I feed the list of TimeSeries I directly get NaN as losses during training. If I concatenate all…

phoenire
- 51
- 5
2
votes
2 answers
Pytorch Forecasting vs Darts, experiences welcome
I was wondering which package to use between pytorch forecasting (https://pytorch-forecasting.readthedocs.io/en/stable/) or darts (https://unit8co.github.io/darts/). I have been trying both, it looks like darts is more sklearn-like in its writing…

cosmogato
- 21
- 3
2
votes
3 answers
any way to predict monthly time series with scikit-learn in python?
I want to forecast product' sales_index by using multiple features in the monthly time series. in the beginning, I started to use ARMA, ARIMA to do this but the output is not very satisfying to me. In my attempt, I just used dates and sales column…

Hamilton
- 620
- 2
- 14
- 32
1
vote
0 answers
Why is historical_forecast on ARIMA model from Darts is so slow?
I'm implementing an AR(7) model using the Darts library, and I want to use a rolling window technique to test my results on my dataset.
My dataset is not huge, only 1825 days (5 years, 365*5), the rolling window size is 365 and I am predicting just…

paolopazzo
- 277
- 2
- 14
1
vote
1 answer
Error Metric for Backtest and Historical Forecasting in darts are different
When using backtest and historical_forecast in darts I expect the same error. However, when doing a test, I get different MAPE values for the same input variables. Can somebody explain how this can happen? How can I make the two methods…

Ludwig B
- 13
- 3
1
vote
1 answer
Unable to load darts v0.22.0 model without GPU
I have been using darts v0.22.0 for the last few months. I had trained my model on a GPU machine and saved it via model.save(). Now when I'm trying to deploy it on a CPU only machine, I used the following code to place the model on CPU.
model =…

Adeel Hashmi
- 767
- 1
- 8
- 20
1
vote
1 answer
Selecting the right forecasting feature in the python darts library
For a uni project I am working on a 24-hour ahead country electricity load forecasting model.
With open source data we already created a proper dataset with time series and corresponding load, and even some other parameters.
We got a recommendation…

bart_joziasse
- 11
- 1
1
vote
1 answer
DARTS Time Series Ensemble Regression Error
I am trying to implement an ensemble of 4 DARTS models each having fit and predict methods. My goal is as follows :
I have a dataframe with 10 columns (including the target column that I want to forecast ahead)
The rest of the 9 columns are…

Crossfit_Jesus
- 53
- 4
- 18
1
vote
0 answers
How can we save darts model lets say TFT Model using mlflow
I want to save my Darts TFT MODEL using mlflow and load it using mlflow. Currently i log my model using sklearn flavor not i am unable to load it.
ERROR - (AttributeError: 'Trainer' object has no attribute '_accelerator_connector')
Currently i log…

James Trump
- 11
- 1
1
vote
1 answer
GPU Usage While Training LSTM Model Using Darts
I am currently using the Darts library to do some time series forecasting using an LSTM.
In my arguments I set the model to utilize my GPU and the output from the dashboard during training shows that my GPU is indeed being used.
Looking at the…

Oscy
- 19
- 3
1
vote
2 answers
ERROR: Failed building wheel for pystan in Anaconda distribution. How to fix this error?
When trying to install Darts library its dependencies Pystan and Prophet were throwing errors:
ERROR: Failed building wheel for pystan
Building wheel for prophet (setup.py) error
Followed solution from here which redirected me to the pystan docs,…

Roopa Sudhakar
- 39
- 1
- 5