Hello, in line 115 of train_AFF.py, the code is:
sharpe = ((ret_mean - 0.03/252) / ret.std() * np.sqrt(252)).item()
It calculates the Sharpe ratio using ret. However, ret should be the correlation between fct and tgt. I don't understand why the Sharpe ratio can be calculated using ret in this context.