Skip to main content
. 2023 Jan 3;23(1):525. doi: 10.3390/s23010525
Algorithm 1: The learning process details of the RankBoot algorithm for approaching the final ranking H.

Require: Initial values of (D c0, c1) over each code example pair in the training data.

1: Initialize: D1(c0,c1)=D(c0,c1)

2: for t = 1, …, T (T = 12) do

3: Build ranking function f t (c) based on the ranking feature.

4: Choose αt using Equation (8).

5: Update: Dt+1(c0,c1)=Dt(c0,c1)exp(t(ft(c0)ft(c1)))

6: end for

7: Output the final ranking H(c)=t=1Tαtft(c)