主要介绍了keras 多任务多loss实例,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
2022-10-15 19:47:25 59KB keras 多任务 多loss
1
记录一下: # Three loss functions category_predict1 = Dense(100, activation='softmax', name='ctg_out_1')( Dropout(0.5)(feature1) ) category_predict2 = Dense(100, activation='softmax', name='ctg_out_2')( Dropout(0.5)(feature2) ) dis = Lambda(eucl_dist, name='square')([feature1, feature2]) judge = Den
2022-03-14 10:32:43 62KB AS keras oss
1