質問編集履歴
1
コードに少しミスがあっため修正(matual→matmul ,sesion→session など) また、jupyter notebookでは実行できた
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,7 +64,7 @@
|
|
64
64
|
|
65
65
|
w = tf.Variable(tf.zeros([2, 1]))
|
66
66
|
|
67
|
-
b = tf.Variable(tf.zeros[1])
|
67
|
+
b = tf.Variable(tf.zeros([1]))
|
68
68
|
|
69
69
|
|
70
70
|
|
@@ -72,7 +72,7 @@
|
|
72
72
|
|
73
73
|
t = tf.placeholder(tf.float32, shape=[None, 1])
|
74
74
|
|
75
|
-
y = tf.nn.sigmoid(tf.matu
|
75
|
+
y = tf.nn.sigmoid(tf.matmul(x, w) + b)
|
76
76
|
|
77
77
|
|
78
78
|
|
@@ -132,7 +132,7 @@
|
|
132
132
|
|
133
133
|
'''
|
134
134
|
|
135
|
-
classified = correct_prediction.eval(sesion=sess, feed_dict={
|
135
|
+
classified = correct_prediction.eval(session=sess, feed_dict={
|
136
136
|
|
137
137
|
x: X,
|
138
138
|
|
@@ -168,7 +168,11 @@
|
|
168
168
|
|
169
169
|
|
170
170
|
|
171
|
-
|
171
|
+
jupyter notebook で実行してみたところ実行できました。
|
172
|
+
|
173
|
+
pycharm での実行になれていないため失敗していると思うのですが、注意点はあるでしょうか?
|
174
|
+
|
175
|
+
pycharmでのpython interpreterはpython3.6を指定しています。
|
172
176
|
|
173
177
|
|
174
178
|
|