Don't take it personal. Perhaps prepare yourself mentally by going through scenarios where you are yelled at, turn a deaf ear to what is said, but yet act respectfully. It is all a game that is part of the training. On the other hand, being yelled at in your job or anywhere else is unacceptable behavior by the other person. Turn your fear into indignity and let the person know you don't accept being yelled at.
Advice is easy to give but hard to follow.
I hope some of these ideas will help you. Don't let the chance of being yelled at in training prevent you from following your dream. Best wishes in becoming a good police officer. It depends on the sport 2. They envision themselves as parents some day 3.