one.imIM4E {Immigrate} | R Documentation |
This function performs imIM4E(imbalance Iterative Margin-Maximization under Max-Min entropy) algorithm for one loop.
one.imIM4E(train_xx, train_yy, w, sig = 1, rho = 1, lambda = 1)
train_xx |
model matrix of explanatory variables |
train_yy |
label vector |
w |
initial weight |
sig |
sigma used in algorithm, default to be 1 |
rho |
rho used in algorithm, default to be 1 |
lambda |
lambda used in algorithm, default to be 1 |
w |
new weight after one loop |
C |
cost after one loop |
data(park) xx<-park$xx yy<-park$yy w0 <- rep(1,ncol(xx))/ncol(xx) re<-one.imIM4E(xx,yy,w0) print(re$w)