Skip to main content

Table 1 Multi-label sorting calculation algorithm

From: Age estimation algorithm of facial images based on multi-label sorting

Algorithm: Multi-label sorting calculation algorithm

Enter: Training sample set \( \mathrm{X}={\left\{{x}_i\in {R}^d\right\}}_{i=1}^n \) , corresponding to the age label set \( \mathrm{Y}={\left\{{y}_i\in {\left\{0,1\right\}}^m\right\}}_{i=1}^n \) , and parameter λ initialized: η0 = 1, γ = 2, α1 = 1, W0 = Z0 = Z1 = Rd × n.

Cycling when conditions do not converge:

 1. Set up \( \overline{\eta}={\eta}_{k-1} \)

 2. When \( \mathrm{F}\left({P}_{\overline{\eta}}\left({Z}_{k-1}\right)\right)>{Q}_{\overline{\eta}}\left({P}_{\overline{\eta}}\left({Z}_{k-1}\right),{Z}_{k-1}\right)\Big) \), so that \( \overline{\eta}:= \frac{\overline{\eta}}{\gamma } \)

 3. Set \( {\eta}_k=\overline{\eta} \), and update \( {\eta}_k=\overline{\eta} \):

   Wk = Pηk(Zk)

   \( {\alpha}_{k+1}=\frac{1+\sqrt{1+4{\alpha}_k^2}}{2} \)

   \( {Z}_{k+1}={W}_k+\left(\frac{\alpha_k-1}{\alpha_{k+1}}\right)\left({W}_k-{W}_{k-1}\right) \)

End Cycle