Faq how do I retrieve and display predictions from a model structure in command window: Difference between revisions
Jump to navigation
Jump to search
imported>Lyle (Created page with "===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...") |
imported>Lyle |
||
Line 5: | Line 5: | ||
===Possible Solutions:=== | ===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 <code>plscal</code>, you can use: | The predictions are stored in the <code>.pred</code> 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 <code>plscal</code>, you can use: | ||
>> plscal.pred{2} | >> plscal.pred{2} | ||
to display the predictions. Likewise, for new test data, if you save the test data, it is in the same field. | to display the predictions. Likewise, for new test data, if you save the test data, it is in the same field. |
Latest revision as of 09:40, 9 January 2019
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