Open Cris-chen opened 3 years ago
How to write the code to assign different gradient weights to different classes of SparseCategoricalCrossentropy
The sample_weight param may work. https://tensorflow.google.cn/api_docs/python/tf/keras/losses/SparseCategoricalCrossentropy#__call__
How to write the code to assign different gradient weights to different classes of SparseCategoricalCrossentropy