Skip to content

Commit a734556

Browse files
committed
added airpassengers dataset
1 parent 2636fee commit a734556

File tree

3 files changed

+410
-26
lines changed

3 files changed

+410
-26
lines changed

examples/airpassengers_dataset.ipynb

Lines changed: 360 additions & 0 deletions
Large diffs are not rendered by default.

examples/quick_start.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import numpy as np
2+
from faim_sdk import ForecastClient, Chronos2ForecastRequest
3+
4+
# Initialize client
5+
client = ForecastClient(api_key="your-api-key")
6+
7+
# Prepare your time-series data
8+
# Shape: (batch_size, sequence_length, features)
9+
data = np.random.randn(32, 100, 1).astype(np.float32)
10+
11+
# Create probabilistic forecast request
12+
request = Chronos2ForecastRequest(
13+
x=data,
14+
horizon=24, # Forecast 24 steps ahead
15+
output_type="quantiles",
16+
quantiles=[0.1, 0.5, 0.9] # 10th, 50th (median), 90th percentiles
17+
)
18+
19+
# Generate forecast - model inferred automatically from request type
20+
response = client.forecast(request)
21+
22+
# Access predictions
23+
print(response.quantiles.shape) # (32, 24, 3, 1)
24+
print(response.metadata) # Model version, inference time, etc.

examples/toy_example.ipynb

Lines changed: 26 additions & 26 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)