7.00.02 - Additional Notes - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Aster Analytics
Release Number
Release Date
September 2017
Content Type
Programming Reference
User Guide
Publication ID
English (United States)

Specify rules with either Request parameters or a database table in the ModelTable argument of AMLGenerator. Specify the dictionary with the ModelTable, ModelTag, and InstalledFile arguments of AMLGenerator.

When a rule uses a dictionary file, you must first install the dictionary file on the database and then specify its name in the ModelTable clause when you invoke AMLGenerator with ModelTag "DICT".

The following examples show different usage of rules and the dictionary.

Example 1: No Model File, Request Parameter Specifies Rules

RequestArgName1 ('Rules')
RequestArgVal1 ('contain(content, "floods", 1, ) OR
                 contain(content, "tsunamis", 1,) AS Natural-Disaster')

Example 2: Rules Table is Database Table, No Dictionary File

ModelTable ('rules')


ModelTable ('rules')
ModelTag ('PREDICT')
InstalledFile ('false')

Example 3: Request Parameters Specify Rules and Two Dictionary Files

ModelTable ('file1', 'file2')
InstalledFile ('true', 'true')
ModelTag ('DICT', 'DICT')
RequestArgName1 ('Rules')
RequestArgVal1 ('tag1, DICT(content, "file1", 1, )',
                'tag2, DICT(content, "file2", 1, )')

Example 4: ModelTable Argument Specifies Both Rules Table and Dictionary

The rules in the rule table, 'rules', can contain references to the dictionary files, 'file1' and 'file2'.

ModelTable ('rules', 'file1', 'file2')
InstalledFile ('false', 'true', 'true')
ModelTag ('PREDICT', 'DICT', 'DICT')