svmopredict.Rd
Predict over the new data instances using the trained models
svmopredict(models, test)
models | A matrix of 1xN trained SVM models. Where N denotes the number of classes of the problem minus one. |
---|---|
test | Numeric test data without labels. |
A list containing the projected values per instance per class and the predicted values (the maximum probability for each data instance).
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 connection#> Error in svmofit(dattrain[, -ncol(dattrain)], dattrain[, ncol(dattrain)], TRUE, 1, 1): object 'dattrain' not founddattest<-read.table("test_balance-scale.0", sep=" ")#> Warning: cannot open file 'test_balance-scale.0': No such file or directory#> Error in file(file, "rt"): cannot open the connectionpredictions<-svmopredict(modelstrain,dattest[,-ncol(dattest)])#> Error in svmopredict(modelstrain, dattest[, -ncol(dattest)]): object 'dattest' not found