EVRISCRIPT Module

From Eigenvector Research Documentation Wiki
Revision as of 14:33, 3 March 2016 by imported>Scott (Created page with "===Purpose=== EVRISCRIPT_Module objects wrap Eigenvector code and objects into "steps" used in an Evriscript Object. Each step defines the operation, inputs, outputs, and...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Purpose

EVRISCRIPT_Module objects wrap Eigenvector code and objects into "steps" used in an Evriscript Object. Each step defines the operation, inputs, outputs, and options.

EVRISCRIPT_Module) to perform.

Description

Creating a modules

Create an empty instance of a module:

module = evriscript_module;

After creating instance of evriscript_module, the following operations can be done to customize the module for its particular operation.

Using Keywords

  • Specify the keyword to instance the module through evriscript objects:
module.keyword = 'knn';

Add Description

  • Provide a description of the module:
module.description = 'KNN K-nearest neighbor classifier';

Add New Mode

  • Add a new mode:
module.command.calibrate = 'var.model = knn(var.x,var.k,options);';
Creating a new mode starts by defining the "command" property for the mode. This consists of specifying the command property, followed by the mode name ("calibrate" in the example above) and the command to execute for this mode. The mode name is also used to specify mode-specific settings in the "required", "optional" and "outputs" properties of the EVRISCRIPT_MODULE object.
Note that inputs and outputs from the function are prefixed with "var." to indicate these are properties on the evriscript object (see "required" and "optional" properties below). The "options" input never has a var. prefix as it refers to the EVRISCRIPT_STEP options specifically.

Executing a script

Step Output/Input Referencing (chaining)

Other Methods

Indexing

Examples

See Also