user manual

157
CLEM Language Reference
Special Fields
Special functions are used to denote the specic elds under examination, o r to generate a list
of elds as input. For exampl e, when deriving multiple elds a t once, you should use @FIELD
to den ote “perfo r m this derive action on the selected el ds.” Using the expression log(@FIELD)
derives a new log eld for each selected eld.
Note: @ functions cannot be called from scripts .
Function
Result
Description
@FIELD
Any
Performs an action on all elds specied in
the expres sion context. Note that this function
cannot be called from a script.
@TARGET
Any
When a CLEM expression i s used in a
user-dened analysis function, @TARGET
represents the target eld or “correct value” for
the target/predicted pair being analyzed. This
function is commonly used i n an Analysis node.
@PREDICTED
Any
When a CLEM expression i s used in a
user-dened analysis f unction,@PREDICTED
represents the predicted value for the
target/predicted pair being analyzed. This
function is commonly used i n an Analysis node.
@PARTITION_FIELD
Any
Substitutes the name of the current partition
eld.
@TRAINING_PARTITION
Any
Returns the value of the current training
partition. For example, to select training records
using a Sel ect node, use the CLEM expression:
@PARTITION_FIELD = @TRAINING_PARTITION
This ensures that the Select node will always
work regar dless of which values are used to
represent each partition in the data.
@TESTING_PARTITION
Any
Returns the value of the current testing partition.
@VALIDATION_PARTITION
Any
Returns the value of the current valid at i on
partition.
@FIELDS_BETWEEN(start, end)
Any
Returns the list of eld names between the
specied start and end el ds (inclusiv e) based
on the natural (that is, insert) order of the elds
in the data. For more information, see t he
topic Summarizing Multiple Fields in Chapter 7
on p. 115.
@FIELDS_MATCHING(pattern)
Any
Returns a list a eld names matching a specied
pattern. A question mark (?) can be included in
the pattern t o match exactly one character; an
asterisk (*) matches zero or more characters. To
match a literal question mark or asterisk (rather
than using these as wildcards), a backslash
(\) can be used as an escape character. For
more information, see the topic Summarizing
Multiple Fields in Chapter 7 on p. 115.
@MULTI_RESPONSE_SET
Any
Returns the list of elds in the named multipl e
response set. For more information, see the
topic Working wit h Multiple-Resp onse Data in
Chapter 7 on p. 117.