I'm trying to predict a continuous variable (count) in R with random forest. The values of the predicted variable are min=1 and max=1000.
I tried getting the prediction accuracy with "confusionMatrix", but naturally I get the error of different number of levels between the prediction and the predicted.
What is the best method of getting prediction accuracy in these circumstances?
to predict a continuous variable<-- regression ||values of the predicted variable are min=1 and max=1000<-- It can be depending on the data set, the range of continuous variable is (-infinity, infinity) ||prediction accuracy with "confusionMatrix"<-- confusion matrix is not used for regression but root mean squared error, which is the root of squared sum of difference between actual and fitted values divided by the number of records (en.wikipedia.org/wiki/Root-mean-square_deviation) - Jaehyeon Kim