MATLAB: Undefined function ‘predict’ for input arguments of type ‘table’.

predictrusboosttree

predict(RUSBoostedTreeModel,X) gives the error "Undefined function 'predict' for input arguments of type 'table'". The documentation https://nl.mathworks.com/help/stats/compactclassificationensemble.predict.html says that X can be a table. What could be the issue? X is of the same format as the data the model was trained on.

Best Answer

Which release of Statistics and Machine Learning Toolbox are you using?
Does the documentation for the predict function in your installation say that the second input can be a table? The online documentation is for the most recent release and so may describe functionality introduced in a later release than you have installed. Your locally installed documentation will describe the functionality you actually have installed.
Related Question