D ∈ {X, y}: dataset |
f1: model to enhance |
f2: model to avoid enhancement |
nfolds: number of folds for K-fold partitioning |
λ: enhancement step size |
η: enhancement suppression coefficient |
for k = 1 : nfolds do |
Establish Dtrain , Dheld-out |
Train f1, f2 |
g1 ← ∇xA(f1,Xheld-out) |
g2 ← ∇xA(f2,Xheld-out) |
end for |