iselector.Rd
Selects the N most relevant instances from ordinal and monotonic dataset, using a three-steps algorithm.
iselector(traindata, trainlabels, candidates, collisions, kEdition)
traindata | Training data of numeric type without labels. |
---|---|
trainlabels | A vector of numeric tags for each instance of training data. |
candidates | Rate of the best candidates to be selected. |
collisions | Minimal rate of collisions permitted to stop the removal process. |
kEdition | Maximum number of nearest neighborgs to consider. |
A reduced dataset with the selected instances and its labels.
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<-iselector(traindata,trainlabels,0.01,0.01,5)#> Error in iselector(traindata, trainlabels, 0.01, 0.01, 5): object 'trainlabels' not found