![TensorFlow 1.x Deep Learning Cookbook](https://wfqqreader-1252317822.image.myqcloud.com/cover/419/36700419/b_36700419.jpg)
上QQ阅读APP看书,第一时间看更新
Getting ready
Declaring a loss function requires defining the coefficients as variables and the dataset as placeholders. One can have a constant learning rate or changing learning rate and regularization constant. In the following code, let m be the number of samples, n the number of features, and P the number of classes. We should define these global parameters before the code:
m = 1000
n = 15
P = 2