Evriscript: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Donal
No edit summary
imported>Donal
No edit summary
Line 12: Line 12:
perform, each step indicated by its keyword. The list of available
perform, each step indicated by its keyword. The list of available
step keywords is given by the command:  evriscript_module('showall')
step keywords is given by the command:  evriscript_module('showall')
Example, myscript = evriscript( 'pls', 'crossval', 'choosecomp', 'pls');
 
   myscript = evriscript(keyword,keyword,...);  % create a script with two or more steps
   myscript = evriscript(keyword,keyword,...);  % create a script with two or more steps


Example, myscript = evriscript( 'pls', 'crossval', 'choosecomp', 'pls');
'myscript' is an evriscript object. The script steps are evriscript_step
'myscript' is an evriscript object. The script steps are evriscript_step
objects which can be accessed by indexing, 'myscript(1)', for example.
objects which can be accessed by indexing, 'myscript(1)', for example.

Revision as of 15:39, 16 November 2010

Purpose

EVRISCRIPT objects allow calling various PLS_Toolbox operations in an object-oriented way. A script can contain one or more steps, each of which is a separate object with its own inputs and outputs. Each step is defined by a keyword which represents the type of step (known as a module) to perform.

Description

Creating a script

Call evriscript with parameters indicating the sequence of steps to perform, each step indicated by its keyword. The list of available step keywords is given by the command: evriscript_module('showall')

  myscript = evriscript(keyword,keyword,...);  % create a script with two or more steps

Example, myscript = evriscript( 'pls', 'crossval', 'choosecomp', 'pls'); 'myscript' is an evriscript object. The script steps are evriscript_step objects which can be accessed by indexing, 'myscript(1)', for example.

The individual steps' properties are then configured. Most steps have more than one 'step_mode', for example 'calibrate', 'apply' or 'test'. You can see which step_modes are avaialable for a step by entering myscript(1).step_module. This also shows the required and optional properties associated with the step for each step_mode. The 'calibrate' step_mode lists required properties as: 'x', 'y', and 'ncomp'.