What factors should be considered when selecting a loss function for a deep learning model? How does the choice of loss function depend on the type of problem, such as classification or regression? What are the commonly used loss functions in deep learning and their use cases? How does the loss function impact model training and performance? What are the best practices for evaluating and selecting the most appropriate loss function?