Kevin R. Chen
12/12/2023, 10:22 PMKevin R. Chen
12/12/2023, 10:28 PMPriya Mittal
12/22/2023, 7:37 PMPriya Mittal
12/23/2023, 1:41 PMMarc Light
01/05/2024, 12:54 AMLeonie
01/09/2024, 5:38 PM刘传琨
01/11/2024, 9:32 AMPriya Mittal
01/11/2024, 2:39 PMPriya Mittal
01/13/2024, 11:31 AMPriya Mittal
01/13/2024, 3:55 PMPriya Mittal
01/18/2024, 4:00 PMAntoine SCHWARTZ -CROIX-
01/19/2024, 9:22 AMWriteTimeout
when I'm trying to forecast all my 30k TS (no problem with a light subsample), even if I set a longer max_wait_time
.
Did I miss something?
Thanks in advance.Priya Mittal
02/01/2024, 6:46 AMPriya Mittal
02/10/2024, 9:40 AMDhruv Dharmeshkumar Modi
03/03/2024, 10:04 PMEvan Miller
03/13/2024, 8:39 PMAndy Mercker
03/26/2024, 7:58 PMGFa
03/26/2024, 9:17 PMMuneeb Shahid
04/08/2024, 12:04 PMFrancesco Angeli
04/08/2024, 7:48 PMKyler Suden
04/09/2024, 5:15 PMStephen Cox
04/12/2024, 5:08 AMKeyError: 'TimeGPT-hi-20'
and have no idea what this means. Hopefully someone can help point me in the direction of how to solve?ya g
04/12/2024, 5:53 AMPunya K
04/16/2024, 5:44 AMApiError Traceback (most recent call last)
<ipython-input-7-01587ebdecfc> in <cell line: 5>()
3 api_key = 'my_api_key_provided_by_nixtla'
4 )
----> 5 fcst_df = nixtla_client.forecast(df, h=24, level=[80, 90])
15 frames
/usr/local/lib/python3.10/dist-packages/nixtlats/client.py in model_params(self, request)
248 except JSONDecodeError:
249 raise ApiError(status_code=_response.status_code, body=_response.text)
--> 250 raise ApiError(status_code=_response.status_code, body=_response_json)
251
252 def timegpt(self, *, request: SingleSeriesForecast) -> typing.Any:
ApiError: status_code: 401, body: {'status': 401, 'data': None, 'message': 'Invalid API key', 'details': 'Key not found, verify in https://dashboard.nixtla.io', 'code': 'A12', 'support': 'If you have questions or need support, please email ops@nixtla.io', 'requestID': 'WFL6GQ9NXA'}
How to resolve this error?Stephen Cox
04/17/2024, 3:26 AMMariana Menchero
04/17/2024, 4:43 AMStephen Cox
04/17/2024, 7:21 AMApiError: status_code: 500, body: {'status': 500, 'data': None, 'message': 'Request failed with status code 500', 'details': 'An error occurred: cannot reshape array of size 696 into shape (20,12), Please contact us at <mailto:ops@nixtla.io|ops@nixtla.io> or Azul', 'code': 'B30', 'support': 'If you have questions or need support, please email <mailto:ops@nixtla.io|ops@nixtla.io>', 'requestID': 'H8HHPQZHR6'}
Faraz Sarmeili
04/20/2024, 7:18 AMFalse
in PyCharm, although it functions correctly in Colab. I have set the API key as an environmental variable both through the OS and directly in PyCharm's settings. Despite these efforts, the validation still fails in PyCharm.
Here are the steps I have confirmed:
• The environment variable is accurately configured in the settings of PyCharm's Python console.
• When I print the key from the code, it appears correctly.
I would greatly appreciate any insights or suggestions on what might be causing this issue or further steps I could take to resolve it. Thank you very much for your help!Luca Spolidoro
04/22/2024, 8:32 PMMonth, Currency Pair, Account, Activity
2022-01-01, EURUSD, 1000 (Cash), 3000
2022-01-01, EURUSD, 2000 (Payables), -1000
2022-01-01, EURUSD, 3000 (Receivables), 5000
2022-02-01, EURUSD, 1000 (Cash), 4900
2022-02-01, EURUSD, 2000 (Payables), -3000
2022-02-01, EURUSD, 3000 (Receivables), 2000
2022-03-01, EURUSD, 1000 (Cash), -2000
2022-03-01, EURUSD, 2000 (Payables), -10000
2022-03-01, EURUSD, 3000 (Receivables), 19000
2022-01-01, USDCAD, 1000 (Cash), 4500
2022-01-01, USDCAD, 2000 (Payables), -1500
2022-01-01, USDCAD, 3000 (Receivables), 7500
2022-02-01, USDCAD, 1000 (Cash), 7350
2022-02-01, USDCAD, 2000 (Payables), -4500
2022-02-01, USDCAD, 3000 (Receivables), 3000
2022-03-01, USDCAD, 1000 (Cash), -3000
2022-03-01, USDCAD, 2000 (Payables), -15000
2022-03-01, USDCAD, 3000 (Receivables), 28500
2022-01-01, USDINR, 1000 (Cash), -1500
2022-01-01, USDINR, 2000 (Payables), 500
2022-01-01, USDINR, 3000 (Receivables), -2500
2022-02-01, USDINR, 1000 (Cash), -2450
2022-02-01, USDINR, 2000 (Payables), 1500
2022-02-01, USDINR, 3000 (Receivables), -1000
2022-03-01, USDINR, 1000 (Cash), 1000
2022-03-01, USDINR, 2000 (Payables), 5000
2022-03-01, USDINR, 3000 (Receivables), -9500
The ds column is Month, and the y column is Activity.
The main unique_id column is Currency Pair, but I also have the Account column that distinguishes the Activity.
To use the TimeGPT APIs, I tried to pivot the table on Account, and have something like this:
Month, Currency Pair, 1000 (Cash), 2000 (Payables), 3000 (Receivables)
2022-01-01, EURUSD, 3000, -1000, 5000
2022-01-01, USDCAD, 4500, -1500, 7500
2022-01-01, USDINR, -1500, 500, -2500
2022-02-01, EURUSD, 4900, -3000, 2000
2022-02-01, USDCAD, 7350, -4500, 3000
2022-02-01, USDINR, -2450, 1500, -1000
2022-03-01, EURUSD, -2000, -10000, 19000
2022-03-01, USDCAD, -3000, -15000, 28500
2022-03-01, USDINR, 1000, 5000, -9500
I tried to forecast the “1000 (Cash)” column:
forecast = nixtla_client.forecast(df=df, time_col='Month', id_col='Currency Pair', target_col='1000 (Cash)', h=3)
but it doesn’t take in consideration the other two “_2000 (Payables)”_, “_3000 (Receivables)_” for calculating the forecast, nor it adds them in the output:
unique_id, ds, TimeGPT
EURUSD, 2022-04-01, -1397.99
EURUSD, 2022-05-01, -345.228
EURUSD, 2022-06-01, 1201.812
USDCAD, 2022-04-01, -2096.98
USDCAD, 2022-05-01, -517.842
USDCAD, 2022-06-01, 1802.718
USDINR, 2022-04-01, -165.96
USDINR, 2022-05-01, -698.591
USDINR, 2022-06-01, -869.486
What can you recommend for my scenario where the value to forecast could depend on N other columns (that I have in the history), and the model automatically infers the relationships/weights, forecasting them all at once?
I see in the TimeGPT forecast function definition, the id_col
and target_col
are a single string, and I couldn't find any way to provide multiple ones. I see there is a way to add exogenous variables, but they all need to be future values, while I need to forecast them.Tomáš Halama
04/24/2024, 9:30 PMApiError: status_code: 429, body: {'status': 429, 'data': None, 'message': 'Too many requests', 'details': 'You need to add a payment method to continue using the API, do so from <https://dashboard.nixtla.io>', 'code': 'A21', 'support': 'If you have questions or need support, please email <mailto:ops@nixtla.io|ops@nixtla.io>', 'requestID': 'KJL7MVVHVX'}