How d2i-group/tsflab works
TSFLab is an agent-agnostic time-series forecasting research workbench, not an agent or merely a model library. A compatible coding agent uses the CLI and domain guidance to discover verified model, component, and dataset knowledge; configure and run comparable experiments; inspect results; and contribute validated improvements for reuse. The experiment runner, catalog, data presets, and repository checks are distinct stages, with run records supporting reproducibility and bounded research rounds. The web app supplies a separate results/leaderboard view. Relationships are limited to README-documented flows and references visible in the supplied source index; many implementation details were not sampled.
Main entry points: run_one.py Experiment runner · main.py TSF CLI · search.py Knowledge cards · loader.py Experiment configuration
Components 19
Agent support
- TSF CLI
src/tsflab/cli/main.py - Domain guide
src/tsflab/agent/modules.py - Task templates
src/tsflab/agent/tasks.py
Forecasting knowledge
- Knowledge cards
src/tsflab/catalog/cards/search.py - Model registry
src/tsflab/catalog/registry/models.py - Dataset presets
src/tsflab/data/provider.py - Reusable components
src/tsflab/catalog/components.py
Experiment workflower
- Experiment configuration
src/tsflab/experiments/config/loader.py - Experiment runner
src/tsflab/experiments/runner/run_one.py - Forecasting models
src/tsflab/models - Evaluation metrics
src/tsflab/experiments/runner/evaluator.py - Execution infrastructure
src/tsflab/experiments/infra/execution.py - Run records
src/tsflab/experiments/infra/storage.py
Recursive improvement
- Research rounds
src/tsflab/research/rounds.py - Admission and audits
src/tsflab/catalog/cards/audit.py - Repository checks
src/tsflab/cli/commands/repository.py
Results and reporting
- Results and leaderboard
src/tsflab/core/leaderboard.py - Results web app
apps/web/app/page.tsx
Other components
- Researcher / agent
Connections 20
- Researcher / agent → TSF CLI: invokes
README.md - TSF CLI → Domain guide: loads guidance
- TSF CLI → Task templates: renders tasks
- Researcher / agent → Knowledge cards: discovers knowledge
README.md - Knowledge cards → Model registry: retrieves model metadata
src/tsflab/catalog/cards/search.py - Researcher / agent → Dataset presets: selects data
README.md - Researcher / agent → Reusable components: reuses components
README.md - Researcher / agent → Experiment configuration: declares experiment
README.md - Experiment configuration → Experiment runner: configures
README.md - Experiment runner → Forecasting models: executes
src/tsflab/experiments/runner/run_one.py - Experiment runner → Dataset presets: loads data
src/tsflab/experiments/runner/run_one.py - Experiment runner → Evaluation metrics: evaluates
src/tsflab/experiments/runner/run_one.py - Experiment runner → Execution infrastructure: uses execution services
- Experiment runner → Run records: persists runs
src/tsflab/experiments/runner/run_one.py - Researcher / agent → Research rounds: manages research rounds
- Researcher / agent → Admission and audits: proposes verified changes
README.md - TSF CLI → Repository checks: routes repo checks
src/tsflab/cli/main.py - Repository checks → Admission and audits: audits catalog
src/tsflab/cli/commands/repository.py - Researcher / agent → Results and leaderboard: inspects outcomes
README.md - Results and leaderboard → Results web app: presents leaderboard