vault backup: 2025-03-04 11:17:00
This commit is contained in:
3
20.01. Programming/Keras/categorical_crossentropy.md
Normal file
3
20.01. Programming/Keras/categorical_crossentropy.md
Normal file
@@ -0,0 +1,3 @@
|
||||
- 僅適用於 one-hot 編碼。
|
||||
- 如果輸出不是 one-hot,而是整數標籤,也就是直接輸出 0、1、2,而不是一個array(`[0, 0, 0, 1, 0]` 之類),那就需要 sparse_categorical_crossentropy。
|
||||
- 範例:[[An example that use categorical_crossentropy and softmax]]
|
||||
Reference in New Issue
Block a user