Skip to main content
. 2023 Jan 5;23(2):621. doi: 10.3390/s23020621
Algorithm 2: Collaboration of Models.
Input   : Sets of pseudo-labeled images: XN1l^,XN2l^
     Vectors of per-class conf. thr.: VCT1,VCT2
     Amount of images to exchange: n
     Image-level confidence threshold control: λ
Output: New sets of ps.-lab. images: XN1,newl^,XN2,newl^
 // ClassSort(v) returns the vector of sorted v indices after
 // sorting by v values, so that Δi[k] is a class index.
          Δ1 ←ClassSort(VCT2VCT1)
          Δ2 ←ClassSort(VCT1VCT2)
 // ClassImageList(X) returns a vector so that Si[k] is the
 // list of images in X containing pseudo-labels of class k.
          S1 ←ClassImageList(XN1l^),
          S2 ←ClassImageList(XN2l^)
XN1,newl^,XN2,newl^ ←,
         k,Nc ←0,Num. Classes
graphic file with name sensors-23-00621-i002.jpg
return XN1,newl^,XN2,newl^