def explained_variance(returns, values):
exp_var = <NUM_LIT:1> - torch.var(returns - values) / torch.var(returns)<EOL>return exp_var.item()<EOL>
Calculate how much variance in returns do the values explain