1. 程式人生 > >莫煩大大TensorFlow學習筆記(4)----分類問題

莫煩大大TensorFlow學習筆記(4)----分類問題

rop entropy cti cross tensor mea orf code edi

1、分類的loss損失函數:可設為交叉熵

cross_entropy = tf.reduce_mean( -tf.reduce_sum ( ys * tf.log ( prediction) ,
                                                reduction_indices = [1] ))

莫煩大大TensorFlow學習筆記(4)----分類問題