TensorFlow 1.x Deep Learning Cookbook
上QQ阅读APP看书,第一时间看更新

Choosing loss functions

As discussed earlier, in regression we define the loss function or objective function and the aim is to find the coefficients such that the loss is minimized. In this recipe, you will learn how to define loss functions in TensorFlow and choose a proper loss function depending on the problem at hand.