l2正则化使用

tf.contrib.layers.l2_regularizer()

使用详情请见:

  • https://stackoverflow.com/questions/37107223/how-to-add-regularizations-in-tensorflow
  • https://stackoverflow.com/questions/38286717/tensorflow-regularization-with-l2-loss-how-to-apply-to-all-weights-not-just

你可能感兴趣的:(l2正则化使用)