Skip to content

Commit 22c2d0d

Browse files
authored
Update 03_polynomial_regression.py
fix the mul to be compatible with the current tf api. : )
1 parent 45b6035 commit 22c2d0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/03_polynomial_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# e.g. ridge regression has a parameter controlling the amount of shrinkage
3939
# over the norm of activations. the larger the shrinkage, the more robust
4040
# to collinearity.
41-
# cost = tf.add(cost, tf.mul(1e-6, tf.global_norm([W])))
41+
# cost = tf.add(cost, tf.multiply(1e-6, tf.global_norm([W])))
4242

4343
# %% Use gradient descent to optimize W,b
4444
# Performs a single step in the negative gradient

0 commit comments

Comments
 (0)