Skip to main content
. 2017 Aug 3;17(8):1786. doi: 10.3390/s17081786
Algorithm 1 The framework of Normal Constrained Active Learning
Input: Two heterogeneous social networks: Gs and Gt. Two sets of labeled anchor link: The training set At and the validation set Av. The query pool P. The max number of queries nq. The potential entropy computation method Hp.
Output: The new training set At and the new query pool P
  • 1:

    Initialize n0

  • 2:

    For each a(uis,ujt) in At and P, extract four types of features.

  • 3:

    while n<nq do

  • 4:

        Train an SVM model θ on At according to the training part in MNA;

  • 5:

        For each unlabeled anchor link a in P, use θ to predict the probabilities of its value to be 0 and 1, which is presented as Pθ(0|a) and Pθ(1|a).

  • 6:

        if Hp is HB then for each link a in P, compute Hp(a) by Equation (2)

  • 7:

        else

  • 8:

            Use θ as the trained classifier in MNA, and use MNA to predict the labels of all the links in Av.

  • 9:

            Compute the probabilities PYY and PNY by Equation (4).

  • 10:

            For each a in P, find R(a), and compute Hp(a) by Equation (5).

  • 11:

        end if

  • 12:

        Select the link ah which has the highest potential entropy in P, and identify its real label.

  • 13:

        if the real label of ah is “negative” then

  • 14:

            ah0, AtAt{ah}, PP{ah}

  • 15:

        else

  • 16:

            ah1

  • 17:

            Find R(ah) from P, for each link in ar in R(ah), set ar0

  • 18:

            AtAt{ah}R(ah), PP{ah}R(ah)

  • 19:

        end if

  • 20:

        nn+1

  • 21:

    end while