training data set: . The maximal number of epoches of the algorithm is . Mini-batch size .
Output:
Parameters , of the deep neural networks, and corresponding hash codes matrix .
(1)
Generating quadruplets (named ) from training set, generating quadruplets (named ) from training set.
(2) Initialize the deep neural network parameters ,, the whole training image hash representations , the whole training text hash representations , the hash codes matrix , and the epoch numbers .
(3) repeat
(4) fordo
(5) Randomly sample images from to construct a mini-batch of images.
(6) For each instance in the mini-batch, calculate by forward propagation.