one.imIM4E {Immigrate}R Documentation

one.imIM4E

Description

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

Usage

one.imIM4E(train_xx, train_yy, w, sig = 1, rho = 1, lambda = 1)

Arguments

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

Value

w

new weight after one loop

C

cost after one loop

Examples

data(park)
xx<-park$xx
yy<-park$yy
w0 <- rep(1,ncol(xx))/ncol(xx)
re<-one.imIM4E(xx,yy,w0)
print(re$w)

[Package Immigrate version 0.0.2 Index]