kdlorpredict.Rd
Predicts the test data labels using a Kernel Discriminant Learning for Ordinal Regression fitted model
kdlorpredict(fittedmodel, trainData, testData)
fittedmodel | fitted model of class kdlorModel obtained with kdlortrain(...) |
---|---|
trainData | Data used to previously train the model. Tags should not be provided in traindata. |
testData | Test data without labels. |
A list of two elements containing the predicted labels for each instances and the projected values.
testdata<-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 connectiontestlabels<-testdata[,ncol(testdata)]#> Error in eval(expr, envir, enclos): object 'testdata' not foundtestdata<-testdata[,-ncol(testdata)]#> Error in eval(expr, envir, enclos): object 'testdata' not foundpred<-kdlorpredict(myfit,traindata,testdata)#> Error in typeof(fittedmodel): object 'myfit' not found