BhalalaDaksh commited on
Commit
58f46e4
·
verified ·
1 Parent(s): 69dba44

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +78 -0
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ tags:
6
+ - time-series
7
+ - time-series-forecasting
8
+ - forecasting
9
+ - gift-eval
10
+ - meta-learning
11
+ - agentic
12
+ - pytorch
13
+ datasets:
14
+ - Salesforce/GiftEval
15
+ pipeline_tag: time-series-forecasting
16
+ ---
17
+
18
+ # CompactTS-Agent: Autonomous Agentic Meta-Forecaster for Time Series
19
+
20
+ Developed by **Daksh Bhalala**.
21
+
22
+ `CompactTS-Agent` is an autonomous agentic meta-forecasting system designed for general time-series forecasting across diverse industrial domains (energy grids, server telemetry, traffic flow, nature observations, and healthcare).
23
+
24
+ ## Architecture Overview
25
+
26
+ Rather than relying on a single static neural network across disparate domains, `CompactTS-Agent` operates as an autonomous orchestration system:
27
+
28
+ 1. **Series Profiler:** Extracts structural statistical and spectral characteristics from incoming series (Fourier spectral density, dominant seasonal lag, trend variance ratio, and kurtosis).
29
+ 2. **Meta-Routing Policy:** Maps the time series to domain-specialized open-weights foundation model representations (`TimesFM-3`, `Chronos-2`, `Toto-2.0`).
30
+ 3. **Calibrated Quantile Fusion:** Enforces strict quantile monotonicity ($q_{0.1} \le q_{0.2} \le \dots \le q_{0.9}$) and harmonic basis alignment.
31
+
32
+ All underlying foundation models utilized in this agentic framework are public open-source weights licensed under Apache-2.0.
33
+
34
+ ## Installation & Quickstart
35
+
36
+ ```bash
37
+ git clone https://github.com/DakshBhalala/AMBACAST.git
38
+ cd AMBACAST
39
+ pip install -e .
40
+ ```
41
+
42
+ ### Python API Usage
43
+
44
+ ```python
45
+ import numpy as np
46
+ import pandas as pd
47
+ from compactts.agent import CompactTSAgent, SeriesProfiler
48
+
49
+ # 1. Profile an incoming time series
50
+ profiler = SeriesProfiler(freq="H")
51
+ series = np.sin(np.linspace(0, 20, 100)) + 0.1 * np.random.randn(100)
52
+ profile = profiler.profile(series)
53
+ print("Series Profile:", profile)
54
+
55
+ # 2. Generate calibrated probabilistic forecasts
56
+ agent = CompactTSAgent(prediction_length=24, freq="H")
57
+ start_dates = [pd.Period("2024-01-01 00:00", freq="h")]
58
+ forecasts = agent.forecast_batch([series], start_dates)
59
+
60
+ # Access forecast quantiles (9 levels: 0.1 to 0.9)
61
+ q_forecasts = forecasts[0].forecast_array
62
+ print("Forecast shape (9 quantiles, 24 horizon):", q_forecasts.shape)
63
+ ```
64
+
65
+ ## Benchmark Evaluation
66
+
67
+ CompactTS-Agent is evaluated against the 97 dataset configurations of the **Salesforce GIFT-Eval** benchmark under `model_type: "agentic"`.
68
+
69
+ To reproduce results:
70
+ ```bash
71
+ python scripts/run_agentic_benchmark.py
72
+ ```
73
+
74
+ ## Citation & Authorship
75
+
76
+ - **Author:** Daksh Bhalala
77
+ - **Code Repository:** [DakshBhalala/AMBACAST](https://github.com/DakshBhalala/AMBACAST)
78
+ - **License:** Apache-2.0