Skip to content

Commit 7390fb4

Browse files
committed
2 parents 07d87b8 + 39d3002 commit 7390fb4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tensorlayer/cost.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def binary_cross_entropy(output, target, epsilon=1e-8, name='bce_loss'):
7676

7777

7878
def mean_squared_error(output, target, is_mean=False):
79-
"""Return the TensorFlow expression of mean-squre-error of two distributions.
79+
"""Return the TensorFlow expression of mean-square-error of two distributions.
8080
8181
Parameters
8282
----------
@@ -102,7 +102,7 @@ def mean_squared_error(output, target, is_mean=False):
102102
return mse
103103

104104
def normalized_mean_square_error(output, target):
105-
"""Return the TensorFlow expression of normalized mean-squre-error of two distributions.
105+
"""Return the TensorFlow expression of normalized mean-square-error of two distributions.
106106
107107
Parameters
108108
----------

tensorlayer/layers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ def __init__(
778778
print(" lambda_l2_w: %f" % lambda_l2_w)
779779
print(" learning_rate: %f" % learning_rate)
780780

781-
# Mean-squre-error i.e. quadratic-cost
781+
# Mean-square-error i.e. quadratic-cost
782782
mse = tf.reduce_sum(tf.squared_difference(y, x_recon), 1)
783783
mse = tf.reduce_mean(mse) # in theano: mse = ((y - x) ** 2 ).sum(axis=1).mean()
784784
# mse = tf.reduce_mean(tf.reduce_sum(tf.square(tf.sub(y, x_recon)), 1))

0 commit comments

Comments
 (0)