Skip to content

About sharpe in train_AFF.py #16

@wangtianqi1993

Description

@wangtianqi1993

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions