DATA
Defines the DATA section and routes data contributions to a specific source such as DATABASE or CSV based on the FROM clause.
Properties of DATA
| Name | Type | Description |
| SourceType | enumDataSourceType | |
| CSV | CSVNODE | Routes the DATA section to a CSV data source definition. |
| DATABASE | DATABASENODE | Routes the DATA section to a database-backed data source definition. |
Syntax
DATA FROM <DATASOURCE>
Examples
MODULE
MODEL
CONSTRAINTS
DATA_TARGET RiskScore >= 0.75 ON_FAIL REJECT
MODULE
MODEL
DATA FROM CSV
'
SentimentScore,IssueSeverityScore,WaitTime,CustomerAge,RuleAction
-12.0,4,25,80,Escalate
-9.5,3,20,75,Escalate
-2.0,1,5,45,Standard
1.5,0,2,30,Standard
'
MODULE
MODEL
DATA FROM DATABASE
DbType = MSSQL
ConnectionName = 'CustomerDB'
SQL = '
SELECT
SentimentScore,
IssueSeverityScore,
WaitTime,
CustomerAge,
RuleAction
FROM CustomerInteractions
'