search for: testindices

Displaying 1 result from an estimated 1 matches for "testindices".

Did you mean: test_indices
2010 Oct 19
0
RWeka - Error in model.frame.default - evaluate_Weka_classifier
...se the RWeka interface for C4.5 (J48) classification. As a proof of concept I'm using the Iris data set to create a training set of 30 instances (10 per species) and use the remaining 120 instances as my test set. This is what I do: trainingIndices <- rep(1:10, 3) + rep(0:2, each=10) * 50 testIndices <- c(1:150)[-(trainingIndices)] testSet <- iris[testIndices,] trainingSet <- iris[trainingIndices,] t <- J48(trainingSet ~ ., data=trainingSet) So far, so good. I can even do predict(t, testSet). Now I want to get more detailed statistics about the performance of my classifier. evalua...