Algorithm 2 The framework of Biased Constrained Active Learning
|
Input: Two heterogeneous social networks: and . Two sets of labeled anchor link: The training set and the validation set . The query pool . The max number of queries . The potential entropy computation method . The threshold adjusting pace
|
Output: The new training set and the new query pool
-
1:
Initialize , , , ,
-
2:
For each a in and , extract four types of features.
-
3:
while
do
-
4:
Train a SVM model on according to the training part in MNA.
-
5:
For each a in , use to predict and .
-
6:
-
7:
if
and
then
-
8:
else if
then
-
9:
end if
-
10:
Use as the trained classifier in MNA, and use MNA to predict the labels of all links in , and collect all of the predicted positive links into the set . Then set .
-
11:
while
is ∅ do
-
12:
,
-
13:
if
then
-
14:
end if
-
15:
end while
-
16:
-
17:
if
is
then
-
18:
For each a in , compute by Equation (2)
-
19:
else
-
20:
Use MNA to predict the labels of all links in , and compute and by Equation (4)
-
21:
For each a in , find and compute by Equation (5)
-
22:
end if
-
23:
Select the link which has the highest in , and identify its real label, and set
-
24:
if the real label of is “negative” then
-
25:
, ,
-
26:
-
27:
else
-
28:
-
29:
Find from . For each in , set
-
30:
,
-
31:
-
32:
end if
-
33:
-
34:
end while
|