Which of the following are built-in loss functions of tf.keras.losses?

Disable ads (and more) with a membership for a one time $4.99 payment

Prepare for the Huawei Certified ICT Associate – AI Exam with flashcards and multiple-choice questions, featuring hints and explanations. Gear up for success!

Mean squared error is a widely used built-in loss function in TensorFlow's Keras API, primarily utilized for regression tasks. This loss function calculates the average of the squares of the errors—that is, the difference between the predicted values and the actual values. The squaring ensures that higher errors have a disproportionately larger impact on the total loss, which encourages models to focus on minimizing larger errors during training. This can lead to improved performance in scenarios where outliers exist in the data, as it forces the model to adjust more significantly for those predictions that diverge from the true values.

Other loss functions mentioned may also exist in different contexts or require custom implementation. Likelihood is not a specific loss function in the Keras library but can represent a concept in probability theory. Mean absolute percentage error loss, while important for certain types of tasks, is not included as a built-in loss function in tf.keras.losses. Binary cross-entropy loss is available and commonly used for binary classification tasks, but in this instance, the focus is on mean squared error as the specified built-in loss function recognized in the library.