predict.LFE {Immigrate}R Documentation

predict.LFE

Description

This function performs predition for LFE(Local Feature Extraction) algorithm.

Usage

## S3 method for class 'LFE'
predict(object, xx, yy, newx, ...)

Arguments

object

weights obtained from LFE

xx

model matrix of explanatory variables

yy

label vector

newx

new model matrix to be predicted

...

further arguments passed to or from other methods

Value

predicted labels for new data (newx)

References

Sun Y, Wu D. A relief based feature extraction algorithm[C]//Proceedings of the 2008 SIAM International Conference on Data Mining. Society for Industrial and Applied Mathematics, 2008: 188-195.

Examples

data(park)
xx<-park$xx
yy<-park$yy
w<-LFE(xx,yy)
pred<-predict(w,xx,yy,xx)
print(pred)

[Package Immigrate version 0.2.1 Index]