Skip to main content
. 2016 Jun 29;16(7):998. doi: 10.3390/s16070998
Algorithm 1. Pseudo code description of COSC-Boosting algorithm.
  COSC-Boosting
Input:  label sample set: L={(xtL,ytL)}t=1M,
    unlabeled data set: U={(xtU,)}t=1N,
    maximum number of iteration: T
    number of randomly chosen samples in the unlabeled set for classifier updating: M
Output: the eventual classifier f
procedure :
   L1L;  % Prepare a labeled sample set L1 for TPSRC;
   L2L;  % Prepare a labeled sample set L1 for TPSRC;
    Create a buffer pool U{(xiU,)}i=1M to save the M’ samples randomly chosen from U;
    Training TPSRC hTPSRC(x) based on L1 .
    For each xiUU xiUU
    yxiUTPSRC=hTPSRC(xiU);
    yxiUMARSC=hMARSC(xiU);
     If Label(yxiUTPSRC)=Label(yxiUMARSC) % gain the same label from TPSRC and MARSC
      MSE(hTPSRC;xiU)=xiL1{[yihTPSRC(xi)]2[yihTPSRC*(xi)]2};
      MSE(hMARSC;xiU)=xiL2{[yihMARSC(xi)]2[yihMARSC*(xi)]2};
     If both MSE(hTPSRC;xiU)0 and MSE(hMARSC;xiU)0
       hTPSRChTPSRC*;   %Update hTPSRC;
       hMARSChMARSC*;   %Update hMARSC;
     End If
      End If
 End For
πTPSRCϕ;
 If exist MSE(hTPSRC;xiU)0 % find the labeling of most confidence
  x˜TPRSCUagrmax{MSE(hTPSRC;xiU)}; yTPRSCUhTPRSC(x˜TPRSCU);
  πTPSRC{(x˜TPRSCU,yTPRSCU)};
   End If
πMARSCϕ;
  If exist MSE(hMARSC;xiU)0 % find the labeling of most confidence
   x˜MARSCUagrmax{MSE(hMARSC;xiU)}; yTPRSCUhMARSC(x˜MARSCU);
   πMARSC{(x˜MARSCU,yTPRSCU)};
    L1L1πTPRSC; L2L2πTPRSC;
   If neither L1 and L2 changes then directly exit the repeating;
   Else
   Training hTPRSC(x) based on L1 and hMARSC(x) based on L2 separately;
   Reset U’ and Randomly select M’ samples from U with replacement to U’;
   End If
 End Repeat
Output: the ultimate classifier f(x)=12(hTPRSC(x)+hMARSC(x));;