Skip to main content
. Author manuscript; available in PMC: 2021 Dec 13.
Published in final edited form as: Proc IEEE Int Symp Biomed Imaging. 2021 May 25;2021:1047–1051. doi: 10.1109/ISBI48211.2021.9434034
Algorithm 1 MixDANN for Domain Generalization
Data:Set of samplexand labelyfrom SourcesP1,,Pkand TargetQModels:U-Net (Feature Extractorrθand Task-specific Networkcσ),Do-main Discriminatordμ1:procedureTRAIN MIXDANN USING SOURCES(Pi)i2:formini-batchofsamples fromsources(xi)i(Pi)ido3:Mixup:x~p,qλxp+(1λ)xqforp,qpairs,λBeta(0.7,0.7)4:TaskUpdate:θ,σarg minσ,θLT(σ,θ,x~i,j)5:DomainUpdate:θ,μarg[minθmaxμγLD(μ,θ,x~i,j)]6:endfor7:endprocedure8:procedureTESTING MIXDANN ON TARGETQ9:Prediction:yicσrθ(xi)for samples from targetxiQ10:endprocedure