Skip to content

Conversation

Yugnaynehc
Copy link
Contributor

fix some typo, including:

line 25: tf.cost.cross_entropy -> tl.cost.cross_entropy

line 44: x = -> x = output, z = targets -> z = target, logistic loss -> binary cross entropy loss

line 81: mse = tf.reduce_sum(tf.squared_difference(output, target), reduction_indices = 1) -> mse = tf.reduce_mean(tf.reduce_sum(tf.squared_difference(output, target), reduction_indices = 1))
(# The original one is 'square error'; using variable name 'mse' was not so proper :D)

line 227: that apply L1 regularization -> that apply Li regularization
(# In fact, there is L2 regularization.)

fix some typo, including:

line 25: tf.cost.cross_entropy -> tl.cost.cross_entropy

line 44: `x = ` -> `x = output`, `z = targets` -> `z = target`, logistic loss -> binary cross entropy loss

line 81: mse = tf.reduce_sum(tf.squared_difference(output, target), reduction_indices = 1) -> mse = tf.reduce_mean(tf.reduce_sum(tf.squared_difference(output, target), reduction_indices = 1)) 
(# The original one is 'square error'; using variable name 'mse' was not so proper :D)

line 227: that apply L1 regularization -> that apply Li regularization
(# In fact, there is L2 regularization.)
@zsdonghao zsdonghao merged commit 86a8c25 into tensorlayer:master Nov 19, 2016
@Yugnaynehc Yugnaynehc deleted the Yugnaynehc-patch-fix-cost-typo branch November 19, 2016 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants