Skip to main content
. 2018 Jan 31;115(7):1481–1486. doi: 10.1073/pnas.1719747115

Algorithm 1.

Subsampling MMD Algorithm (SSP)

1: Divide XS and XT separately into d groups by Z
2: Decide subsample size (s1,s2,,sd)
3: For b= 1 to B, do
4: Generate subsamples XSb from d groups of XS
5: Generate subsamples XTb from d groups of XT
6: (λ^b,θ^b)=argminλΩλ,θΩθMMD^(hλ(XSb),gθ(XTb))
7: Calculate and record gu(i,k)b for all u,i,k
8: Set λ^=1Bb=1Bλ^b and θ^=1Bb=1Bθ^b and calculate 𝕍𝔸IJ(λ^) and
𝕍𝔸IJ(θ^)