質問編集履歴

3

修正依頼のため

2017/07/25 15:45

投稿

takuyanai
takuyanai

スコア11

test CHANGED
File without changes
test CHANGED
@@ -274,7 +274,7 @@
274
274
 
275
275
  print("{:s} => {:s}".format(word, ", ".join(predictions)))
276
276
 
277
-
277
+ ```
278
278
 
279
279
 
280
280
 

2

質問内容をわかりやすく

2017/07/25 15:45

投稿

takuyanai
takuyanai

スコア11

test CHANGED
@@ -1 +1 @@
1
- DeepLearning Keras word2vecのエラー(テキストファイル読み込み時)
1
+ python(2系と3系の違い?) biteとstr型に関するエラー(テキストファイル読み込み時) Keras word2vec(テキストファイル読み込み時)
test CHANGED
File without changes

1

例 語字

2017/07/25 14:52

投稿

takuyanai
takuyanai

スコア11

test CHANGED
File without changes
test CHANGED
@@ -180,7 +180,7 @@
180
180
 
181
181
 
182
182
 
183
- # plot loss function
183
+
184
184
 
185
185
  plt.subplot(211)
186
186
 
@@ -212,7 +212,7 @@
212
212
 
213
213
 
214
214
 
215
- # evaluate model
215
+
216
216
 
217
217
  score = model.evaluate(Xtest, Ytest, verbose=1)
218
218
 
@@ -220,7 +220,7 @@
220
220
 
221
221
 
222
222
 
223
- # using the word2vec model
223
+
224
224
 
225
225
  word2idx = tokenizer.word_index
226
226
 
@@ -228,11 +228,7 @@
228
228
 
229
229
 
230
230
 
231
- # retrieve the weights from the first dense layer. This will convert
231
+
232
-
233
- # the input vector from a one-hot sum of two words to a dense 300
234
-
235
- # dimensional representation
236
232
 
237
233
  W, b = model.layers[0].get_weights()
238
234