- There's a small typo in your fitcecoc function call. The argument should be 'Verbose' instead of 'Verbos'. This typo might be causing part of the issue.
- Make sure that your trainingFeatures and trainingLabels are correctly formatted. Since you have 'ObservationsIn', 'columns', each column in trainingFeatures should represent a single observation. Double-check that your data is structured this way.
- When you set 'CrossVal', 'on', the function returns a cross-validated model rather than a single model. If you want to use cross-validation, you should use kfoldPredict to make predictions, instead of predict.
- Decide if you want to use cross-validation. If you do, remember to use crossval to make a cross-validated model and then kfoldPredict for predictions.
- Ensure that trainingFeatures, trainingLabels, and testFeatures are all in the correct format and dimensions. This will help avoid any unexpected errors.