﻿# LSTNet exchange-rate data: inspect full-file normalization before a backtest

Trace the author LSTNet exchange-rate loader from headerless columns to normalization and chronological splits, separating historical reproduction from past-only scaling.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-lstnet-exchange-rate-full-file-normalization-protocol/
Language: en

## Locate preprocessing before trusting the split

An exchange-rate benchmark can use a chronological holdout while deriving its scale from later observations. Looking only at the final training and test indices misses this dependency. Inspect the order of normalization and splitting in the actual loader. This is an evaluation-protocol question, not a claim that a particular model can profitably predict financial markets or that changing one preprocessing step establishes a better operational forecasting system.

## Preserve the released column contract

The [author data repository](https://raw.githubusercontent.com/laiguokun/multivariate-time-series-data/master/README.md) describes a shared comma-separated matrix format and the exchange-rate collection. Its numerical columns require an accompanying identity record when exported to another framework. Do not invent calendar timestamps or currency mappings from a bare tensor position without checking the actual release. Row order can preserve chronology without providing a complete publication-time or market-session schema for each observation.

## Read the selected normalization mode

In the [published loader](https://raw.githubusercontent.com/laiguokun/LSTNet/master/utils.py), the explicit mode `normalize=2` computes each column scale from the maximum absolute value over the loaded column. That operation occurs before the chronological split. Consequently, the future portion of the file can influence the numerical training representation. A code comment about rows should not override the implementation, which iterates over columns and selects the entire corresponding observation history.

## Separate reproduction from a past-only experiment

The [LSTNet paper](https://arxiv.org/abs/1703.07015) supplies the research context, but reporting a new past-only scaling experiment requires naming the change. Fit the replacement scale using only information available at the forecast origin and preserve its values for inverse transformation. Results from the modified protocol should not be labelled as an unchanged reproduction of the original loader merely because model weights, split fractions or output dimensions agree.

## Test sensitivity to an unavailable future extreme

Create a diagnostic copy in which a later held-out value changes while the training prefix stays fixed. Under a past-only preprocessing rule, the prepared training prefix should remain unchanged. Such a contract test exposes the dependency without measuring predictive quality. [Temporal availability](/journal/data-guide-temporal-split-availability/) and [software reproducibility](/journal/software-stack-reproducibility/) explain adjacent controls. Record the loader revision, selected mode and fitted statistics so readers can distinguish a historical benchmark implementation from the information boundary required by the intended application.
