Open amirj opened 3 years ago
Hey @amirj,
Sorry for the late reply! Currently we do not support the Triplet loss, but you could try out L2Distance
and CosineDistance
losses. Both losses are applicable in the scenario where you are trying to map two spaces onto the same one. Does this help?
For a use case, I'm interested to use triplet/hinge loss, looking at the implementation of different losses in Thinc, I can't see something similar. Though there are various implementation in TensorFlow or PyTorch, it's not clear to me how can I leverage them to implement
get_grad
andget_loss
functions.