This code accompanies the the paper Trading with the Momentum Transformer: An Intelligent and Interpretable Architecture (https://arxiv.org/pdf/2112.08534.pdf).
Within the code in mon_trans/changepoint_detection.py at function changepoint_loc_and_score.
The script used the StandardScaler to fit transform the entire timeseries data, and I could not find anywhere else has a train/test split before generating CPD data. Is this a possible Data Leakage that improves the prediction result with CPD feature ?
Within the code in
mon_trans/changepoint_detection.py
at functionchangepoint_loc_and_score
.The script used the
StandardScaler
to fit transform the entire timeseries data, and I could not find anywhere else has a train/test split before generating CPD data. Is this a possible Data Leakage that improves the prediction result with CPD feature ?Best Regards, Chris