|
本帖最后由 pythontab_lin 于 2017-9-12 16:24 编辑
if relative_error & gt;error_threshold:
print("Gradient Check ERROR: parameter=%s ix=%s" % (pname, ix))
print("+h Loss: %f" % gradplus)
print("-h Loss: %f" % gradminus)
print("Estimated_gradient: %f" % estimated_gradient)
print("Backpropagation gradient: %f" % backprop_gradient)
print("Relative Error: %f" % relative_error)
return如上文所述,if那句话要怎么理解?
|
|