- A relation network consists of two important functions: the embedding function, denoted byÂ
, and the relation function, denoted byÂ
.Â
- Once we have the feature vectors of the support set,Â
, and query set, Â
, we combine them using an operator,Â
. Here,Â
 can be any combination operator; we use concatenation as an operator to combine the feature vectors of the support set and the query set—that is,Â
.
- The relation function,Â
, will generate a relation score ranging from 0 to 1, representing the similarity between samples in the support set,Â
, and samples in the query set,Â
.
-
Our loss function can be represented as follows:
Â
- In matching networks, we use two embedding...