Algorithm 1. AL experimental protocol.
|
Inputs
|
Begin
//Construct the labelled and unlabelled sets
Ls←Resample(s,Tr);
Us←Tr\LS;
//Train ȹ with LS
ȹ←Trai n(Ls,ȹ);
for i ter ←1 to β do
//Select informative example from US
i←SelectInformativeExample (γ,ȹ,US);
//label the selected example
Label(θ,i);
//Update the labelled and unlabelled sets
LS←LS∪i;
US←US\i;
//Train ← with LS
ȹ←Train(Ls,ȹ);
//Evaluate ȹ on TS
Test (Ts,ȹ);
end
end
|