fselector.Rd
Selects the N most relevant features from ordinal and monotonic data, based on mRMR criterion.
fselector(traindata, trainlabels, k, beta, nselected)
traindata | Training data of numeric type without labels. |
---|---|
trainlabels | A vector of numeric tags for each instance of training data. |
k | positive constant for logit function. If large, fuzzy ordinal set is understood as slightly larger. If small, is understood as significantly larger. |
beta | Regulation param for relative importance of MI between features and decision. |
nselected | Number of features to select. |
nselected most important features.
dattrain<-read.table("train_balance-scale.0", sep=" ")#> Warning: cannot open file 'train_balance-scale.0': No such file or directory#> Error in file(file, "rt"): cannot open the connectiontrainlabels<-dattrain[,ncol(dattrain)]#> Error in eval(expr, envir, enclos): object 'dattrain' not foundtraindata=dattrain[,-ncol(dattrain)]#> Error in eval(expr, envir, enclos): object 'dattrain' not foundselected<-fselector(traindata,trainlabels,2,2,2)#> Error in fselector(traindata, trainlabels, 2, 2, 2): object 'trainlabels' not found