Request PhaseWeave benchmark provenance
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
Hugging Face shares your account username and email with the owner for access review and licensing correspondence. This catalog does not provide market records.
Log in or Sign Up to review the conditions and access this dataset content.
PhaseWeave FX Margin Window Pilot v2 catalog
This catalog contains provenance metadata and reproduction instructions. Obtain the source archives from the provider to reproduce the benchmark locally.
This benchmark contains 294,912 historical graph windows for forecasting both directional margins of an FX conversion triangle one second ahead. The frozen windows come from 71,997,600 quote rows in 30 monthly HistData.com Generic ASCII tick archives spanning August through October 2026. The labels are deterministic functions of later quotes. The recommended baseline is the contemporaneous margin in persistence.
Access and source terms
This public card describes the benchmark. The catalog download contains provenance metadata. To reproduce the benchmark, acquire the source archives directly from the provider under its terms.
HistData.com provides free downloads for backtesting and disclaims warranty or certification. The provider's download page, FAQ, format specification, and the 30 archived companion text files supplied no explicit license granting redistribution of the original archives or the transformed Parquet rows. Redistribution rights remain unverified. Keep the payload in the owner's authorized environment pending written confirmation from the provider. A metadata-only catalog can carry this card and provenance.json, which lists public source pages, archive names and hashes, aggregate counts, curation parameters, and split metadata. Download page · Provider FAQ · Data specification · Provider support
Credit HistData.com as the source of the Generic ASCII tick quotes. Cite PhaseWeave FX Margin Window Pilot v2 with the frozen manifest SHA-256 89177f9ca8eb968e50ee763bda01850af603ac663268db94a2015c01007aabff when reporting benchmark results. HistData.com
Splits
Dates are UTC. Each interval has an inclusive start and exclusive stop, with complete lookbacks and targets purged at the boundaries. Windows are grouped by triangle, then ordered by anchor within each group. They can overlap within a split. Use train for fitting and validation for model selection. Reserve stress, test, and new_asset for held-out evaluation. new_asset uses two CHF triangles and shares the EUR/JPY and GBP/JPY market edges with earlier splits.
| Split | UTC interval in 2026 | Triangles | Windows | Windows with positive target | Persistence MAE, log bps |
|---|---|---|---|---|---|
train |
Aug 1 to Sep 1 | Development | 65,536 | 8 | 0.208220 |
validation |
Sep 1 to Sep 17 | Development | 65,536 | 3 | 0.227916 |
stress |
Sep 17 to Oct 1 | Development | 65,536 | 2,679 | 0.207013 |
test |
Oct 1 to Nov 1 | Development | 65,536 | 0 | 0.207674 |
new_asset |
Oct 1 to Nov 1 | EUR-CHF-JPY, GBP-CHF-JPY | 32,768 | 0 | 0.220153 |
The development triangles, in row-block order, are EUR-USD-JPY, EUR-GBP-JPY, EUR-GBP-USD, and GBP-USD-JPY. The ten source pairs are EURUSD, USDJPY, EURJPY, EURGBP, GBPJPY, GBPUSD, EURCHF, CHFJPY, GBPCHF, and USDCHF. USDCHF is in the archive inventory. The six triangle definitions use the other nine pairs. Each triangle contributes 16,384 windows per applicable split, sampled without replacement using NumPy seed 20261120 when there are more eligible anchors. Positive counts are windows where either target direction exceeds zero. Persistence MAE averages absolute error across windows and both directions.
Data fields and transformations
The raw source CSV schema is timestamp,bid,ask,volume. HistData timestamps have millisecond precision and use fixed EST, UTC−05:00, throughout the year. Convert to UTC by adding five hours. For identical timestamps within a pair, use the minimum bid and maximum ask. Sort the consolidated quotes by timestamp. The raw timestamps, bid and ask levels, volume, quote identifiers, and archive CSV rows are excluded from the export. Data specification
Use a one-second UTC grid. As-of lookup at each frame selects the latest quote at or before that frame. A quote is fresh through age 250 ms, inclusive. For a quoted pair A/B, conversion A→B uses the bid and B→A uses reciprocal ask. Express rates in natural-log basis points, 10,000 × ln(rate), and center them by the gauge defined by the 0→1 and 1→2 bid edges. This makes those two forward edges zero when available and preserves sums around cycles. At t+1, all three pairs must be fresh and must each have a quote strictly after t. The two labels are the corresponding cycle sums minus 0.1 log bps per leg, 0.3 total. Calculate persistence with the same formula using anchor quotes instead.
| Parquet field | Arrow type | Meaning |
|---|---|---|
split |
UTF-8 string | One of the five frozen split names |
row_index |
int64 | Zero-based row offset in the corresponding frozen NPZ split |
triangle |
UTF-8 string | Ordered currency labels for graph nodes 0, 1, 2 |
anchor_utc_s |
int64 | Unix epoch seconds in UTC for the last observed input frame |
features |
Nested fixed-size lists of float32, [16, 6, 3] |
Frame × directed edge × feature channel |
margin |
Fixed-size list of two float32 values | Target margins observed one second after the anchor, in log bps |
persistence |
Fixed-size list of two float32 values | Same two margins computed at the anchor, in log bps |
row_sha256 |
UTF-8 string | Lowercase hexadecimal SHA-256 of the canonical row |
The frame order is t−15 through t, oldest first. Edge order is [0→1, 1→0, 1→2, 2→1, 0→2, 2→0]. Feature channels, in order, are gauge-centered log bps, quote age divided by 250 ms, and a binary quote-availability mask. Both output lists use the order [0→1→2→0, 0→2→1→0].
Missing observations
An unavailable directed edge has the float32 channel values [0, 1, 0]. Both gauge-tree pairs must be fresh to expose any edge in a frame. If either is missing or stale, all six directed edges are masked. If only the remaining cross pair is unavailable, its two directions are masked together. Use channel 2 as the mask. All rows have six available edges at the anchor and two finite labels. Arrow fields, list elements and scalar elements are non-nullable.
| Split | Masked directed edge slots | Fully masked frames | Windows with any masked edge |
|---|---|---|---|
train |
3,299,830 (52.45%) | 539,074 | 63,530 |
validation |
2,939,474 (46.72%) | 481,165 | 62,384 |
stress |
2,914,082 (46.32%) | 472,526 | 63,908 |
test |
2,819,274 (44.81%) | 456,984 | 63,692 |
new_asset |
1,264,620 (40.20%) | 204,824 | 31,249 |
Each window has 96 directed edge slots. Model comparisons should preserve the mask and report each held-out split independently. The freshness and eligibility filters favor periods with frequent quote updates. The September positive cluster is concentrated in the stress split. Results characterize one provider, six triangles, and three months of indicative prices. The source has no reliable market-wide volume or depth. The benchmark measures quote-derived forecasting error. Execution, capacity, venue latency, slippage, and realized profit require other evidence.
Load a local copy
from pathlib import Path
import numpy as np
from datasets import load_dataset
root = Path("artifacts/margin-window-pilot-v2-parquet")
names = ["train", "validation", "stress", "test", "new_asset"]
data = load_dataset(
"parquet",
data_files={name: str(root / f"{name}.parquet") for name in names},
streaming=True,
)
row = next(iter(data["train"]))
features = np.asarray(row["features"], dtype=np.float32) # (16, 6, 3)
available = features[..., 2].astype(bool)
target = np.asarray(row["margin"], dtype=np.float32) # (2,)
baseline = np.asarray(row["persistence"], dtype=np.float32) # (2,)
The same files are readable with pyarrow.parquet.ParquetFile. One Zstandard Parquet file holds each split. The Arrow metadata keys phaseweave.format, phaseweave.split and phaseweave.metadata carry the schema version, split, units and parameters, frozen NPZ hash, missing-value convention, and source and rights status.
Reproduce and verify
Obtain each archive from its provider page in provenance.json. Match its SHA-256 before reproducing. Run research/histdata_probe.py for the three development-source pairs and the seven additional pairs, using August, September, and October 2026. The provider can revise archives. A mismatched source hash denotes different input bytes. See docs/EXAMPLES.md and docs/TRAINING.md for the acquisition and curation commands. Curate into a fresh destination with research/curate_margin.py, passing both source manifests, seed 20261120, and --samples-per-triangle 16384.
Use the existing Python environment with NumPy, pandas and PyArrow. From the PhaseWeave repository root on the research host, export the frozen dataset with the following command. For new runs, choose a fresh output path. Add --verify to verify a completed output directory against its original, unchanged input manifests and dataset card.
py=/home/iska/miniconda3/envs/tokengt/bin/python
PYTHONDONTWRITEBYTECODE=1 "$py" research/export_parquet.py \
--dataset data/margin-window-pilot-v2 \
--source-manifest data/histdata-pilot/manifest.json \
--source-manifest data/histdata-crosses/manifest.json \
--output artifacts/margin-window-pilot-v2-parquet
From inside the output directory, run sha256sum -c SHA256SUMS to check every staged file. The exporter also validates frozen NPZ file hashes, split membership, purged time bounds, array shapes, numeric finiteness, and missing-data sentinels. It reads every Parquet page back, checks the Arrow schema and metadata, compares row order and bitwise float32 content against the source, and verifies all row hashes. The exporter writes SHA256SUMS last. Its absence indicates an unfinished export.
For each row, concatenate the ASCII bytes phaseweave-margin-window-v1\0, the ASCII split name with a trailing NUL, the row index as a little-endian unsigned 64-bit integer, the ASCII triangle with a trailing NUL, and the Unix anchor as a little-endian signed 64-bit integer. Append features, margin, and persistence in that order as little-endian IEEE 754 float32 bytes in C order. manifest.json records the SHA-256 of the concatenated 32-byte row digests in file order, plus the file hashes, row counts, and mask counts. provenance.json records the upstream archive index and frozen material parameters, independently of the Parquet bytes.
Hugging Face access terms
These terms apply to requests for the PhaseWeave models and benchmark catalog. Hugging Face shares the account username and email address with the repository owner when a request is submitted. Provide a short intended use so the owner can review the request. The contact details are requested for access review and licensing correspondence.
Access to the PhaseWeave model weights is governed by the PolyForm Noncommercial License 1.0.0. Commercial use requires a separate written agreement with Amelie Schreiber. To discuss terms, contact the owner through the Hugging Face profile or GitHub profile.
The benchmark catalog documents third-party market observations. Access to the catalog conveys no license to obtain, reuse, or redistribute the provider's market records. Follow the provider's terms for source data.
The model cards state the measurement scope. Quote-margin forecasts are research outputs. They do not represent filled orders or realized returns.
FX reference and derivative context
The reference companion covers all 294,912 frozen FX windows. The original trade, policy and media slots are carried over unchanged. Eleven appended slots cover BIS currency and pair turnover, SDR basket membership and New York Fed funding rates. The GBP/CHF turnover pair is masked in 16,384 unseen-CHF windows. Each observed context slot has a source clock strictly earlier than its FX anchor. Split definitions and provenance Matched training and mask results
The new receipts pin the NPZ and fixed-size Parquet schemas and file hashes. Separate Gate companions cover settled funding for BTC, ETH, XRP and SOL under a modeled historical clock, and one hour of October spot depth coverage. Neither Gate companion is part of the reference experiment. The catalog contains metadata. Obtain the underlying observations under the source terms.
Width and data scaling
The nested training expansion increases the original 65,536 August windows to 131,072 while preserving the same four evaluation split checksums. It adds 16,384 observed anchors to each of four triangles. Source quote redistribution is governed by the provider. This catalog includes the provenance and checked reconstruction recipe. Versioned dataset entry · Study and reproduction links
Five-horizon FX dataset catalog
Five Parquet partitions contain 491,517 historical windows in the checked local reconstruction, including 262,144 August training keys. Each of the 1, 5, 15, 60 and 300 second targets uses independent availability masks and only quotes observed after the origin. The catalog carries partition provenance, checksums and coverage totals. Market records remain subject to the provider’s terms. Versioned provenance · Curation and measured coverage
- Downloads last month
- 362