ModelSelection
Retrieve records from a model based on their relevance score
Table( ( (ModelSelection( Model ID, Syntax Component, Component Value)) ), [Table Level] )
Note: The score can only be interrogated using a Selection Node or campaign step containing the Dynamic Node and the model option from the context panel.
-
Model ID defines the model to which the ModelSelection is applied
-
Syntax Component defines the type of records to retrieve, see below for components
-
Component Value defines the value which the Syntax Component uses to assess the records within the model
-
Table Level selects the level to which data is rolled, e.g. individual, household, etc.
Components
| Component | Description |
|---|---|
| TakeFirst | Retrieves the first/top n records where n=Component Value |
| TakeOver | Retrieves records that have a score over n where n=Component Value |
| TakeUnder | Retrieves records that have a score under n where n=Component Value |
Example: Retrieve the top 500 individuals from model 200
Table( ( (ModelSelection( 200, TakeFirst, 500)) ), [Individual] )
Example: Retrieve individuals from model 200 with a score of less than 0.01
Table( ( (ModelSelection( 200, TakeUnder, 0.01)) ), [Individual] )
Example: Retrieve individuals from model 200 with a score of more than 0.50
Table( ( (ModelSelection( 200, TakeOver, 0.50)) ), [Individual] )