CoolFace
Datasetpublic

deusmos/cbb26-day-corpus-v1

CBB26 Day Corpus v1 (cbb26-day-corpus-v1) Materialized day_corpus_bundle_v1 training corpora derived from cbb26 Timescale replay — published for cloud training and research without re-running materialization locally. Canonical Hub repo: deusmos/cbb26-day-corpus-v1 Source-of-truth for this card (edit here, then publish): docs/datasets/cbb26-day-corpus-v1/README.md in the cbb26 git repo. Standards index: docs/standards/README.md Start here I want… Use this… See the full description on the dataset page: https://huggingface.co/datasets/deusmos/cbb26-day-corpus-v1.

sourceHugging Faceotherupdated 4mo agoView on Hugging Face
0likes77downloads
Dataset Card

CBB26 Day Corpus v1 (cbb26-day-corpus-v1)

Materialized `day_corpus_bundle_v1` training corpora derived from cbb26 Timescale replay — published for cloud training and research without re-running materialization locally.

Canonical Hub repo: `deusmos/cbb26-day-corpus-v1`

Source-of-truth for this card (edit here, then publish): docs/datasets/cbb26-day-corpus-v1/README.md in the cbb26 git repo.

Standards index: `docs/standards/README.md`


Start here

I want…Use this
ML tensors / training corpusThis repoPath A Quickstart (~10–15 min)
Raw L2 replay / own materialize`cbb26-timeseries-db`
Run a live collectorcbb26 repo + local Docker stack
Not a row-oriented HF dataset. Files are NPZ/JSON day bundles. Do not expect `load_dataset()` to return training rows. Use hf download + verify scripts below.
NDDS = Normalized Decimated Day Slabs — 10-second decimated, loader-normalized tensor slabs cached under _ndds_cache/ (~300 MiB/day on Hub). Implementation: `libs/day_raster_corpus/ndds_cache.py`.

What this dataset is

This is not raw Timescale replay. It is the materialized corpus layer above replay — one fixed materialization profile (10-second decimation, loader normalization, 128-row windows per day_corpus_bundle_v1). That profile is lossy by design: it encodes cbb26's training geometry, not every choice you might want for your own experiments.

If you need a different bucket size, normalization policy, or decimation rate, start from `cbb26-timeseries-db` replay shards and materialize locally. This dataset is the convenience layer; replay preserves your options.

LayerDatasetFidelityUser flexibility
Raw replay`deusmos/cbb26-timeseries-db`Lossless L2 replay truthChoose your own materialization
This datasetcbb26-day-corpus-v1Lossy, fixed profileFast path for standard training geometry
Training runsseparate model reposcheckpoints (v2 standard)

Hub layout (NDDS-only default)

text
train/{YYYY-MM-DD}/
  bundle_manifest.json
  anchors.npz
  _ndds_cache/metadata.json
  _ndds_cache/decimated_slabs.npz
eval/{YYYY-MM-DD}/…

~315 MiB/day average (NDDS-only). Full tensor_*.npz files are not on Hub by default — materialize locally from replay if you need raw slabs.

Schema

Coverage snapshot (live)

<!-- COVERAGE:START -->

MetricValue
Last verified2026-05-25 22:41 UTC
Hub revisiona82f1331f4c7f512ee6a126e410c17dd9c32da5f
Train days57
Eval days2
Total bundle days59
Train span2025-01-012026-05-23
Eval span2024-12-012026-05-06

Refresh: uv run python scripts/generate_hf_dataset_coverage.py --update-readme

<!-- COVERAGE:END -->


Download

Quick verify path (~10–15 min):

bash
git clone https://github.com/deusmos/cbb26.git && cd cbb26
uv sync
./examples/download_and_verify_corpus_day.sh

Manual download:

bash
export HF_TOKEN=...   # optional for public repo
export HF_DATASET_REVISION=<pin-sha-after-upload>

uv run hf download deusmos/cbb26-day-corpus-v1 \
  --repo-type dataset \
  --revision "$HF_DATASET_REVISION" \
  --local-dir ./corpus-hf

Single day:

bash
uv run hf download deusmos/cbb26-day-corpus-v1 \
  --repo-type dataset \
  --include "train/2024-12-01/*" \
  --local-dir ./corpus-hf

Verify locally

bash
uv run python scripts/verify_day_raster_bundle_dir.py \
  ./corpus-hf/train/2024-12-01 --require-ndds

Root verify (profile days):

bash
uv run python scripts/verify_free_17d_day_raster_output_root.py ./corpus-hf/train

Tools for researchers

ToolCommand / link
Download + verify`examples/download_and_verify_corpus_day.sh`
Preview PNG + HTML gallery`examples/preview_corpus_day.sh`
PyTorch DataLoader`libs/day_raster_corpus/pytorch_loader.py`, `examples/pytorch_day_corpus_dataloader.py`
Interactive flashcard (labels required)scripts/run_flashcard_drill.sh -- --bundle-day-dir ...
Hub thumbnailsbrowse `previews/` on this repo
Live peekHF Space `deusmos/cbb26-corpus-peek`

Visual preview (local)

One command after clone — download one train day, render window PNGs, open HTML gallery:

bash
./examples/preview_corpus_day.sh
# opens file://.../tmp/examples_corpus_previews/index.html

Underlying render script: scripts/render_day_bundle_window_samples.py (writes gallery-compatible *_summary.json sidecars).

Visual previews (Hub)

Static montage PNGs are published under previews/{split}/{YYYY-MM-DD}/ with an index at `previews/manifest.json`.

Colormap: signed quantity / depth / delta channels mapped to RGB via `libs/tensor_materializer/visualization.py` (tensor_to_rgb_image_array).

Maintainers regenerate thumbnails:

bash
scripts/upload_corpus_previews_to_hf.sh --corpus-root ./corpus-hf

PyTorch DataLoader (research)

Use the shareable loader module (wraps verified NDDS window code; no latent-encoder labels):

python
from libs.day_raster_corpus.pytorch_loader import Cbb26DayCorpusDataset, load_day_corpus_dataloader

# After: ./examples/download_and_verify_corpus_day.sh
day_dir = "./tmp/examples_corpus_day/train/2024-12-01"

dataset = Cbb26DayCorpusDataset(day_dir, ndds_cache_mode="readonly")
sample = dataset[0]
# sample["tensor"]: (P, 128, bucket_count, 3) float16
# sample["anchor_row_decimated"], sample["anchor_second_index"], sample["trade_date"]

loader = load_day_corpus_dataloader(day_dir, batch_size=4, shuffle=True, ndds_cache_mode="readonly")
batch = next(iter(loader))
# batch["tensor"]: (B, P, 128, bucket_count, 3)

Multi-day local corpus:

python
loader = load_day_corpus_dataloader("./corpus-hf", split="train", batch_size=8)

Stream from Hub without a full local tree (requires HF_TOKEN if gated):

python
dataset = Cbb26DayCorpusDataset(
    "train/2024-12-01",
    corpus_source="hf",
    hf_dataset_repo="deusmos/cbb26-day-corpus-v1",
    ndds_cache_mode="readonly",
)

Notes:

  • Prefer num_workers=0 — full-day NDDS slabs are held in process memory.
  • Default normalization: sample_window_max_abs_per_channel (see libs/day_raster_corpus/loader_normalization.py).
  • Raw timeseries is not a PyTorch loader. Restore `cbb26-timeseries-db` to Postgres and materialize day bundles first.

Demo script: `examples/pytorch_day_corpus_dataloader.py`


Produce bundles from replay

Requires populated Timescale (collector, restore, or backfill):

bash
DB_HOST=localhost DB_PORT=5432 \
uv run python scripts/materialize_valid_day_bundles.py \
  --output-root ./corpus \
  --dates 2024-12-01

See Quickstart Path B and timeseries dataset card.


Upload (maintainers)

bash
export HF_DATASET_REPO=deusmos/cbb26-day-corpus-v1
scripts/upload_corpus_to_hf_sequential.sh \
  --corpus-root ./corpus \
  --batch-by day

Default: --corpus-artifacts ndds-only. Full tensors: --corpus-artifacts full.

Publish this README:

bash
scripts/publish_day_corpus_dataset_readme.sh

Publish Hub preview thumbnails (maintainers):

bash
scripts/upload_corpus_previews_to_hf.sh --corpus-root ./corpus-hf

Contributing missing days

  1. 1.Materialize and verify locally (verify_day_raster_bundle_dir.py)
  2. 2.Upload via sequential script or open Hub Discussion for promotion
  3. 3.See `docs/standards/CONTRIBUTING_DATA.md`

FAQ

Can I use this commercially?

Market data is governed by Coinbase market data terms. Software and manifests are MIT licensed. Not legal advice.

Why Postgres dumps not Parquet?

Raw replay uses pg_dump; this corpus layer uses NPZ/JSON bundles. See ADR-002 and ADR-003.

Why two datasets?

Raw replay (timeseries-db) vs materialized NDDS (this repo).

How complete is UTC day X?

Bundle manifest lists products; upstream replay day should have 20/20 shards before materialization.

How do I cite this?

bibtex
@dataset{cbb26_day_corpus_v1,
  title  = {CBB26 Day Corpus v1 (NDDS Day Bundles)},
  author = {deusmos},
  year   = {2026},
  url    = {https://huggingface.co/datasets/deusmos/cbb26-day-corpus-v1}
}

Is this affiliated with Coinbase?

No. Independent research project using public market feeds.

Full FAQ source: `docs/datasets/_shared/FAQ.md`.


Licensing and data use


References

ResourceLocation
PRD-05docs/prd/PRD-05_day-corpus-public-standard.md
Examplesexamples/download_and_verify_corpus_day.sh, examples/preview_corpus_day.sh, examples/pytorch_day_corpus_dataloader.py
Corpus peek Space`deusmos/cbb26-corpus-peek`
Vast/JOJAT runbookdocs/runbooks/vast_jojat_training.md
Raw replay dataset`deusmos/cbb26-timeseries-db`
Coverage refreshscripts/generate_hf_dataset_coverage.py
Terminologyterminology.md

Changelog

DateNotes
2026-05-25A+++ upgrade: decision tree, live coverage, FAQ, BibTeX, examples link