Immigrate (version 0.2.1)

predict.LFE: predict.LFE

Description

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

Usage

# S3 method for 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

Run this code
# NOT RUN {
data(park)
xx<-park$xx
yy<-park$yy
w<-LFE(xx,yy)
pred<-predict(w,xx,yy,xx)
print(pred)
# }

Run the code above in your browser using DataCamp Workspace