qlib
qlib copied to clipboard
What is the specific meaning of "label"? Does it mean buying at tomorrow's closing price and then selling at the closing price the day after tomorrow?
Do these trades need to be completed before the market closes?
Hi, @touhoufan2024
LABEL usually refers to the future return that the model is trying to predict. Ref($close, -2)/Ref($close, -1) - 1 means the return of buying at tomorrow’s close and selling at the close the day after tomorrow. This is only a target used for model training—it doesn’t imply that real trades must be executed exactly before the close.