C3W2_Assignment Error

refer this

you are probably dividing dataset step into two steps where you are recalling each set twice, dataset need to be recalled in one single step

refer the comment link which explains how to write the code