pompredict.Rd
Predict over the new data instances using the trained model.
pompredict(model, test)
model | A trained POM model. |
---|---|
test | Numeric test data without labels. |
A list containing at the first position the projected values per instance per class and at the second position the predicted label for the values.
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 is.factor(x): 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<-pompredict(fit,dattest[,-ncol(dattest)])#> Error in pompredict(fit, dattest[, -ncol(dattest)]): object 'fit' not foundprojections<-predictions[[1]]#> Error in eval(expr, envir, enclos): object 'predictions' not foundpredictedLabels<-predictions[[2]]#> Error in eval(expr, envir, enclos): object 'predictions' not found