From ad47a2fab1a604804e17ce8da00c69234461ea4f Mon Sep 17 00:00:00 2001 From: crixpwn Date: 2017年3月28日 19:26:21 +0900 Subject: [PATCH] Update 02 - Linear Regression.py fixed code --- 01 - TensorFlow Basic/02 - Linear Regression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01 - TensorFlow Basic/02 - Linear Regression.py b/01 - TensorFlow Basic/02 - Linear Regression.py index 72b44cc8..43a32664 100644 --- a/01 - TensorFlow Basic/02 - Linear Regression.py +++ b/01 - TensorFlow Basic/02 - Linear Regression.py @@ -16,7 +16,7 @@ # X 와 Y 의 상관 관계를 분석하기 위한 가설 수식을 작성합니다. # h = W * X + b # W 와 X 가 행열이 아니므로 tf.matmul 이 아니라 tf.mul 을 사용했습니다. -hypothesis = tf.add(tf.mul(W, X), b) +hypothesis = tf.add(tf.multiply(W, X), b) # 손실 함수를 작성합니다. # mean(h - Y)^2 : 예측값과 실제값의 거리를 비용(손실) 함수로 정합니다.

AltStyle によって変換されたページ (->オリジナル) /