February 2019
Beginner to intermediate
308 pages
7h 42m
English
In an earlier section, we defined the loss function as a way to evaluate the goodness of our predictions (that is, how far off our predictions are). The nature of our problem should dictate the loss function used. There are several loss functions implemented in Keras, but the most commonly used loss functions are mean_squared_error, categorical_crossentropy, and binary_crossentropy.
As a general rule of thumb, this is how you should choose which loss function to use: