imIM4E {Immigrate} | R Documentation |
This function performs imIM4E(imbalance Iterative Margin-Maximization under Max-Min entropy) algorithm.
imIM4E(xx, yy, epsilon = 0.01, sig = 1, rho = 1, lambda = 1, max_iter = 10, removesmall = FALSE)
xx |
model matrix of explanatory variables |
yy |
label vector |
epsilon |
criterion for stopping iteration |
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 |
max_iter |
maximum number of iteration |
removesmall |
whether remove features with small weights, default to be FALSE |
w |
new weight after one loop |
iter_num |
number of iteration for convergence |
final_c |
final cost |
data(park) xx<-park$xx yy<-park$yy re<-imIM4E(xx,yy) print(re)