Additional Notes - Aster Analytics

Teradata AsterĀ® Analytics Foundation User GuideUpdate 2

Product
Aster Analytics
Release Number
7.00.02
Published
September 2017
Language
English (United States)
Last Update
2018-04-17
dita:mapPath
uce1497542673292.ditamap
dita:ditavalPath
AA-notempfilter_pdf_output.ditaval
dita:id
B700-1022
lifecycle
previous
Product Category
Software

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')

or

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')