Displaying 1 result from an estimated 1 matches for "banktest".
Did you mean:
backtest
2011 Feb 02
2
SVM Prediction and Plot
Hi
I'm trying to predict using a model I fitted with SVM.
I constructed the model (called Svm) using a training set, and now I want to
use a test set (called BankTest) for prediction.
The response variable is in the first column of BankTest.
> SvmPred = predict(Svm, BankTest[,-1], probability=TRUE)
> SvmPredRes = table(Pred = SvmPred, True = BankTest[,1])
I get this error:
Error in table(Pred = SvmPred, True = BankTest) : all arguments must have
the sa...