Week 2 : Optimization Methods

{moderator edit - solution code removed}

AssertionError: Wrong shape in the last minibatch. (12288, 128) != (12288, 20)
what is wrong with my logic here ?

Please print out the value you get for the beginning index value of your “range” specifier. It’s not what you think it is …