Skip to main content
Notice removed Draw attention by CommunityBot
Bounty Ended with Sebastian's answer chosen by CommunityBot
Notice added Draw attention by M.R.
Bounty Started worth 100 reputation by M.R.
Tweeted twitter.com/StackMma/status/972011843584577536
edited tags
Link
Source Link
M.R.
  • 31.8k
  • 8
  • 96
  • 289

How to implement a triplet network with NetSharedArray?

In v11.3, NetSharedArray[] and NetInsertSharedArray[] give us a mechanism of sharing weights and biases across neural networks, and this is exciting because now we can train siamese networks and do deep image ranking, and other related applications.

I don't see any applications section for either of these symbols in the documentation center, but I'd like to see how one might implement a basic Triplet Network, for example FaceNet. The problem is that I'm not sure how to write the triplet hinge loss in Mathematica.

References: