Faq how do I retrieve and display predictions from a model structure in command window
How do I retrieve and display predictions from a model structure in the command window?
The predictions are stored in the
.pred field of a model or prediction/test structure (this is the model or test saved from a GUI or output by a command-line function). For a regression method, the y-block predictions are in the second cell (the first cell is generally empty). If you model is named
plscal, you can use:
to display the predictions. Likewise, for new test data, if you save the test data, it is in the same field.
Still having problems? Please contact our helpdesk at email@example.com