MATLAB: Can anyone tell me why I am getting “Undefined function ‘oobPredict’ for input arguments of type ‘dataset'”

undefined function

here is my interactive session command that blows up:
>> [oobPredictions,oobScores] = oobPredict(test); Undefined function 'oobPredict' for input arguments of type 'dataset'.
thanks

Best Answer

William - the error message is telling you that the input parameter test is of type dataset which is invalid as an input parameter to the oobPredict function. According to the links treebagger.oobpredict and classification bagged ensemble, the valid inputs are out-of-bag observations and classification bagged ensemble respectively.