calcError (cv.RTrees) - MATLAB File Help |
Computes error on the training or test dataset
err = model.calcError(samples, responses)
err = model.calcError(csvFilename, [])
[err,resp] = model.calcError(...)
[...] = model.calcError(..., 'OptionName', optionValue, ...)
TrainTestSplitRatio
and specify
TestError=false
, so that the error is computed for the whole
new set. Yes, this sounds a bit confusing. default falseThe method uses the predict method to compute the error. For regression models the error is computed as RMS, for classifiers as a percent of missclassified samples (0%-100%).
Access | public |
Sealed | false |
Static | false |