Computational Intelligence and Neuroscience / 2019 / Article / Alg 1

Research Article

Triplet Deep Hashing with Joint Supervised Loss Based on Deep Neural Networks

Algorithm 1

The procedure of JLTDH.
Input: training images ; code length ; epochs = 150; superparameters ; and minibatch = 128
Initialization: initialize neural network parameters , , and with the AlexNet model and iteration number
 Generate triplet training set: ;
for ; ; do
 Randomly sample a minibatch of points from , and for each sampled point :
(i)Calculate by forward propagation;
(ii)Compute ;
(iii)Compute the binary code of with ;
(iv)Compute derivatives for point ;
(v)Update the parameters by utilizing BP;
(vi)Compute ;
for ; ; do
  Discrete cyclic coordinate descent (DCC) optimization:
(i)Compute according to (16);
(ii)Iteratively optimization update bit by bit using the DCC method according to (21) in the minibatch;
End for
 Update in the minibatch according to joint loss function in (13);
End for
Output: , with the parameters ;
 Hash codes .

We are committed to sharing findings related to COVID-19 as quickly and safely as possible. Any author submitting a COVID-19 paper should notify us at help@hindawi.com to ensure their research is fast-tracked and made available on a preprint server as soon as possible. We will be providing unlimited waivers of publication charges for accepted articles related to COVID-19. Sign up here as a reviewer to help fast-track new submissions.