Hi, @Saransh_Jhunjhunwala.
Make sure you understand the difference between y_true and y_pred and let me know if you need any hints.
Check this post if you’re not sure where the second formula comes from.
Good luck with the assignment