imIM4E {Immigrate}R Documentation

imIM4E

Description

This function performs imIM4E(imbalance Iterative Margin-Maximization under Max-Min entropy) algorithm.

Usage

imIM4E(xx, yy, epsilon = 0.01, sig = 1, rho = 1, lambda = 1,
  max_iter = 10, removesmall = FALSE)

Arguments

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

Value

w

new weight after one loop

iter_num

number of iteration for convergence

final_c

final cost

Examples

data(park)
xx<-park$xx
yy<-park$yy
re<-imIM4E(xx,yy)
print(re)

[Package Immigrate version 0.0.2 Index]