質問編集履歴

4

追記バージョン

2020/01/03 02:35

投稿

T.abe0531
T.abe0531

スコア7

test CHANGED
File without changes
test CHANGED
@@ -57,6 +57,44 @@
57
57
 
58
58
 
59
59
 
60
+
61
+ ### 追記(バージョン)
62
+
63
+
64
+
65
+ jupyter 1.0.0
66
+
67
+ jupyter-client 5.3.4
68
+
69
+ jupyter-console 6.0.0
70
+
71
+ jupyter-core 4.6.1
72
+
73
+ Keras 2.3.1
74
+
75
+ Keras-Applications 1.0.8
76
+
77
+ Keras-Preprocessing 1.1.0
78
+
79
+ numpy 1.17.4
80
+
81
+ matplotlib 3.1.2
82
+
83
+ scikit-learn 0.22.1
84
+
85
+ scipy 1.4.1
86
+
87
+ pandas 0.25.3
88
+
89
+ Pillow 6.2.1
90
+
91
+ tensorflow 1.12.0
92
+
93
+ tensorflow-estimator 2.0.1
94
+
95
+
96
+
97
+
60
98
 
61
99
  ### 追記(コード)
62
100
 

3

使ったコードとエラーの追記

2020/01/03 02:35

投稿

T.abe0531
T.abe0531

スコア7

test CHANGED
File without changes
test CHANGED
@@ -53,3 +53,87 @@
53
53
  tensorflow1.12.0
54
54
 
55
55
  python3.6
56
+
57
+
58
+
59
+
60
+
61
+ ### 追記(コード)
62
+
63
+
64
+
65
+ powershellからjupyterNoteBookを起動してコピペしました。
66
+
67
+
68
+
69
+ ```ここに言語を入力
70
+
71
+ import tensorflow as tf
72
+
73
+ import numpy as np
74
+
75
+
76
+
77
+ from tensorflow.contrib.learn.python.learn.datasets import mnist as mnist_loader
78
+
79
+
80
+
81
+ x = tf.placeholder("float",[None,784])
82
+
83
+ Weight = tf.Variable(tf.zeros([784,10]))
84
+
85
+ b = tf.Variable(tf.zeros([10]))
86
+
87
+ y = tf.nn.softmax(tf.matmul(x,Weight)+b)
88
+
89
+ y_ = tf.placeholder("float",[None,10])
90
+
91
+ cross_entropy = -tf.reduce_sum(y_*tf.log(y))
92
+
93
+ train_step = tf.train.GradientDescentOptimizer(0.01).minimize(cross_entropy)
94
+
95
+
96
+
97
+ init = tf.global_variables_initializer()
98
+
99
+ ss = tf.InteractiveSession()
100
+
101
+ ss.run(init)
102
+
103
+
104
+
105
+ for times in range(1200):
106
+
107
+ xb, yb = mnist.train.next_batch(100)
108
+
109
+ ss.run(train_step, feed_dict={x: xb, y_: yb})
110
+
111
+ ```
112
+
113
+
114
+
115
+ ### 追記エラー
116
+
117
+
118
+
119
+ ```ここに言語を入力
120
+
121
+
122
+
123
+ ERROR:root:Internal Python error in the inspect module.
124
+
125
+ Below is the traceback from this internal error.
126
+
127
+
128
+
129
+ ・・・
130
+
131
+
132
+
133
+ File "c:\users\ユーザー名\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\keras\__init__.py", line 24, in <module>
134
+
135
+ from tensorflow.python.keras import activations
136
+
137
+ ImportError: cannot import name 'activations'
138
+
139
+ ```

2

リンクの内容名

2020/01/03 02:27

投稿

T.abe0531
T.abe0531

スコア7

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- [リンク内容](https://qiita.com/takafumi-ejima/items/474db405f7e9747f6b8f)
5
+ [ブラウザ上で手書きの数字を判別するAIを、コピー&ペーストで作ってみよう](https://qiita.com/takafumi-ejima/items/474db405f7e9747f6b8f)
6
6
 
7
7
 
8
8
 

1

リンクを設定修正

2020/01/02 23:50

投稿

T.abe0531
T.abe0531

スコア7

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,10 @@
1
1
  AIの勉強をすることになったので、まずはと思っていますwindows10で手書き数字認識のAIを作りたい。
2
2
 
3
+
4
+
3
- https://qiita.com/takafumi-ejima/items/474db405f7e9747f6b8f
5
+ [リンク内容](https://qiita.com/takafumi-ejima/items/474db405f7e9747f6b8f)
6
+
7
+
4
8
 
5
9
  上記のサイトに従いjupyterの表示とhellow worldの表示まではできましたが、いざその2をコピペして実行してみるとtensorflowのエラーばかりが起きてしまいました。
6
10