Hi, thanks for your wonderful work! I want to learn how to calculate AA and TE metrics, can you show me the code or details? Thanks!