回答編集履歴

1

追記

2019/06/07 04:28

投稿

physics303
physics303

スコア89

test CHANGED
@@ -3,3 +3,15 @@
3
3
 
4
4
 
5
5
  https://docs.chainer.org/en/stable/reference/generated/chainer.functions.softmax_cross_entropy.html
6
+
7
+
8
+
9
+ 一番現実的なのは、one-hot vectorをGTラベルに直して、F.softmax_cross_entropyになげることかと思います。
10
+
11
+
12
+
13
+ b = np.array([[0,1,0,0],[1,0,0,0],[0,0,0,1],[0,0,1,0]])
14
+
15
+ np.where(b==1)[1]
16
+
17
+ でone hot 表現をGT表現に直せます。