hmc-cs-mdrissi / neural_nets_research

A collection of projects for neural nets research in Mehdi's research group.
MIT License
7 stars 1 forks source link

Other ANC loss functions #18

Open hmc-cs-mdrissi opened 6 years ago

hmc-cs-mdrissi commented 6 years ago

Currently the ANC does correctness and confidence based upon take the square difference (L2). Given that the values are meant to correspond to probability distributions a different loss like cross entrop may help in training. For this to be doable the mask used must either choose to keep or ignore a row and can't choose to ignore a piece of a row (which wouldn't make sense anyways for a normal problem). Then compute the sum of the cross entropies for the relevant rows instead of the mask * (predicted - expected)^2 for those two losses.