Faq how do I retrieve and display predictions from a model structure in command window

From Eigenvector Documentation Wiki
Jump to: navigation, search

Issue:

How do I retrieve and display predictions from a model structure in the command window?

Possible Solutions:

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:

>> plscal.pred{2}

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 helpdesk@eigenvector.com