You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/index.ts
+33-7Lines changed: 33 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -121,12 +121,39 @@ server.tool(
121
121
'forecast',
122
122
'Perform time series forecasting using FAIM platform. Supports both point forecasting (single value) and probabilistic forecasting (confidence intervals). Can handle univariate and multivariate time series data. Currently supported models: Chronos2 (default, recommended for multivariate) and TiRex (fast, univariate only).',
123
123
{
124
-
model: z.enum(['chronos2','tirex']).describe('The forecasting model to use. Chronos2: State-of-the-art, supports univariate/multivariate, custom quantiles. TiRex: Fast alternative for univariate only, uses fixed quantiles [0.1,0.2,...,0.9], custom quantiles parameter ignored.'),
125
-
x: z.any().describe('Time series data to forecast from. Can be a 1D array (single series), 2D array (multiple series/batch or multivariate per model), or 3D array (batch, sequence, features).'),
126
-
horizon: z.number().describe('Number of time steps to forecast into the future. Must be a positive integer. Example: 10 means predict the next 10 steps.'),
127
-
output_type: z.enum(['point','quantiles']).optional().describe('Type of forecast output. "point" = single value per step (fastest). "quantiles" = confidence intervals (use for uncertainty estimation). Default: "point".'),
128
-
quantiles: z.array(z.number()).optional().describe('Custom quantile levels to compute (only used with output_type="quantiles" and Chronos2 model). For TiRex, this parameter is ignored and fixed quantiles [0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9] are always returned. Values must be between 0 and 1. Example: [0.1, 0.5, 0.9] for 10th, 50th, 90th percentiles.'),
129
-
is_multivariate: z.boolean().optional().describe('For 2D input arrays only with Chronos2: interpret as multivariate time series (true) or batch of univariate series (false, default). Ignored for 1D arrays, 3D arrays, and TiRex model.'),
124
+
model: z
125
+
.enum(['chronos2','tirex'])
126
+
.describe(
127
+
'The forecasting model to use. Chronos2: State-of-the-art, supports univariate/multivariate, custom quantiles. TiRex: Fast alternative for univariate only, uses fixed quantiles [0.1,0.2,...,0.9], custom quantiles parameter ignored.'
128
+
),
129
+
x: z
130
+
.any()
131
+
.describe(
132
+
'Time series data to forecast from. Can be a 1D array (single series), 2D array (multiple series/batch or multivariate per model), or 3D array (batch, sequence, features).'
133
+
),
134
+
horizon: z
135
+
.number()
136
+
.describe(
137
+
'Number of time steps to forecast into the future. Must be a positive integer. Example: 10 means predict the next 10 steps.'
138
+
),
139
+
output_type: z
140
+
.enum(['point','quantiles'])
141
+
.optional()
142
+
.describe(
143
+
'Type of forecast output. "point" = single value per step (fastest). "quantiles" = confidence intervals (use for uncertainty estimation). Default: "point".'
144
+
),
145
+
quantiles: z
146
+
.array(z.number())
147
+
.optional()
148
+
.describe(
149
+
'Custom quantile levels to compute (only used with output_type="quantiles" and Chronos2 model). For TiRex, this parameter is ignored and fixed quantiles [0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9] are always returned. Values must be between 0 and 1. Example: [0.1, 0.5, 0.9] for 10th, 50th, 90th percentiles.'
150
+
),
151
+
is_multivariate: z
152
+
.boolean()
153
+
.optional()
154
+
.describe(
155
+
'For 2D input arrays only with Chronos2: interpret as multivariate time series (true) or batch of univariate series (false, default). Ignored for 1D arrays, 3D arrays, and TiRex model.'
0 commit comments