Boolean Rule Action Set: Syntax
Provides actions for Boolean rule extraction and scoring
brTrain Action
Extracts Boolean rules from text.
CASL Syntax
Summary: Input and Output Tables
If a row includes a subparameter, you can specify the name, caslib, and so on in the subparameter. Otherwise, you can specify the name, caslib, and so on in the parameter.
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
table |
specifies the information about the document table. | |
|
required parametertable |
— |
specifies the input data table for rule extraction. |
|
table |
specifies the information about the terms table. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
rules, ruleTerms, candidateTerms |
specifies the data tables that contain the results generated by the action. |
Parameter Descriptions
casOuts={output_parm}
specifies the data tables that contain the results generated by the action.
The output_parm value can be one or more of the following:
candidateTerms={casouttable}
specifies a data table to contain the terms that have been selected for rule creation.
For more information about specifying the candidateTerms parameter, see the common casouttable parameter (Appendix A: Common Parameters).
ruleTerms={casouttable}
specifies a data table to contain the terms in each rule that is generated by the action.
For more information about specifying the ruleTerms parameter, see the common casouttable parameter (Appendix A: Common Parameters).
rules={casouttable}
specifies a data table to contain the rules that have been generated by the action for each category.
For more information about specifying the rules parameter, see the common casouttable parameter (Appendix A: Common Parameters).
* docId="variable-name"
specifies the variable in the TABLE= data table that contains the document ID.
| Default | "_document_" |
|---|
docInfo={docinfo_parm}
specifies the information about the document table.
The docinfo_parm value can be one or more of the following:
events={"string-1" <, "string-2", ...>}
specifies the values of target variables that are considered as positive events; incompatible with MULTICLASS target type.
* id="variable-name"
specifies the variable that contains the document ID.
table={castable}
specifies the input data table that contains information about documents.
For more information about specifying the table parameter, see the common castable parameter (Appendix A: Common Parameters).
targetType="BINARY" | "MULTICLASS" | "MULTILABEL"
specifies the type of the target variables, either BINARY or MULTICLASS.
| Default | BINARY |
|---|
targets={"variable-name-1" <, "variable-name-2", ...>}
specifies the target variables.
gNegative=double
specifies the minimum g-score needed for a negative term to be considered for rule extraction.
| Alias | gNeg |
|---|---|
| Default | 8 |
| Range | 0–32767 |
gPositive=double
specifies the minimum g-score needed for a positive.
| Alias | gPos |
|---|---|
| Default | 8 |
| Range | 1–32767 |
mNegative=integer
specifies the m value for computing estimated precision for negative terms.
| Alias | mNeg |
|---|---|
| Default | 4 |
| Range | 0–32767 |
mPositive=integer
specifies the m value for computing estimated precision for positive terms.
| Alias | mPos |
|---|---|
| Default | 2 |
| Range | 1–32767 |
maxCandidates=integer
specifies the number of term candidates to be selected for each category.
| Default | 500 |
|---|---|
| Range | 0–32767 |
maxTriesIn=integer
specifies the k-in value for k-best search in the term ensemble process for creating rules.
| Default | 150 |
|---|---|
| Range | 0–32767 |
maxTriesOut=integer
specifies the k-out value for k-best search in the rule ensemble process for creating a rule set.
| Default | 50 |
|---|---|
| Range | 0–32767 |
minSupports=integer
specifies the minimum number of documents in which a term needs to appear in order for the term to be used for creating a rule.
| Default | 3 |
|---|---|
| Range | 0–32767 |
nThreads=integer
specifies the number of threads to be used per node. The value must be an integer.
| Default | 0 |
|---|---|
| Range | 0–1024 |
* table={castable}
specifies the input data table for rule extraction.
For more information about specifying the table parameter, see the common castable parameter (Appendix A: Common Parameters).
* termId="variable-name"
specifies the variable in the TABLE= data table that contains the term ID.
| Default | "_termnum_" |
|---|
termInfo={terminfo_parm}
specifies the information about the terms table.
The terminfo_parm value can be one or more of the following:
* id="variable-name"
specifies the variable that contains the term ID.
label="variable-name"
specifies the variable that contains the text of the terms. This variable must be a text variable.
table={castable}
specifies the input data table that contains information about terms.
For more information about specifying the table parameter, see the common castable parameter (Appendix A: Common Parameters).
useOldNames=TRUE | FALSE
specifies whether to use the old variable names used in HPBOOLRULE
| Alias | legacyName, legacyNames |
|---|---|
| Default | FALSE |
brTrain Action
Extracts Boolean rules from text.
Lua Syntax
Summary: Input and Output Tables
If a row includes a subparameter, you can specify the name, caslib, and so on in the subparameter. Otherwise, you can specify the name, caslib, and so on in the parameter.
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
table |
specifies the information about the document table. | |
|
required parametertable |
— |
specifies the input data table for rule extraction. |
|
table |
specifies the information about the terms table. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
rules, ruleTerms, candidateTerms |
specifies the data tables that contain the results generated by the action. |
Parameter Descriptions
casOuts={output_parm}
specifies the data tables that contain the results generated by the action.
The output_parm value can be one or more of the following:
candidateTerms={casouttable}
specifies a data table to contain the terms that have been selected for rule creation.
For more information about specifying the candidateTerms parameter, see the common casouttable parameter (Appendix A: Common Parameters).
ruleTerms={casouttable}
specifies a data table to contain the terms in each rule that is generated by the action.
For more information about specifying the ruleTerms parameter, see the common casouttable parameter (Appendix A: Common Parameters).
rules={casouttable}
specifies a data table to contain the rules that have been generated by the action for each category.
For more information about specifying the rules parameter, see the common casouttable parameter (Appendix A: Common Parameters).
* docId="variable-name"
specifies the variable in the TABLE= data table that contains the document ID.
| Default | "_document_" |
|---|
docInfo={docinfo_parm}
specifies the information about the document table.
The docinfo_parm value can be one or more of the following:
events={"string-1" <, "string-2", ...>}
specifies the values of target variables that are considered as positive events; incompatible with MULTICLASS target type.
* id="variable-name"
specifies the variable that contains the document ID.
table={castable}
specifies the input data table that contains information about documents.
For more information about specifying the table parameter, see the common castable parameter (Appendix A: Common Parameters).
targetType="BINARY" | "MULTICLASS" | "MULTILABEL"
specifies the type of the target variables, either BINARY or MULTICLASS.
| Default | BINARY |
|---|
targets={"variable-name-1" <, "variable-name-2", ...>}
specifies the target variables.
gNegative=double
specifies the minimum g-score needed for a negative term to be considered for rule extraction.
| Alias | gNeg |
|---|---|
| Default | 8 |
| Range | 0–32767 |
gPositive=double
specifies the minimum g-score needed for a positive.
| Alias | gPos |
|---|---|
| Default | 8 |
| Range | 1–32767 |
mNegative=integer
specifies the m value for computing estimated precision for negative terms.
| Alias | mNeg |
|---|---|
| Default | 4 |
| Range | 0–32767 |
mPositive=integer
specifies the m value for computing estimated precision for positive terms.
| Alias | mPos |
|---|---|
| Default | 2 |
| Range | 1–32767 |
maxCandidates=integer
specifies the number of term candidates to be selected for each category.
| Default | 500 |
|---|---|
| Range | 0–32767 |
maxTriesIn=integer
specifies the k-in value for k-best search in the term ensemble process for creating rules.
| Default | 150 |
|---|---|
| Range | 0–32767 |
maxTriesOut=integer
specifies the k-out value for k-best search in the rule ensemble process for creating a rule set.
| Default | 50 |
|---|---|
| Range | 0–32767 |
minSupports=integer
specifies the minimum number of documents in which a term needs to appear in order for the term to be used for creating a rule.
| Default | 3 |
|---|---|
| Range | 0–32767 |
nThreads=integer
specifies the number of threads to be used per node. The value must be an integer.
| Default | 0 |
|---|---|
| Range | 0–1024 |
* table={castable}
specifies the input data table for rule extraction.
For more information about specifying the table parameter, see the common castable parameter (Appendix A: Common Parameters).
* termId="variable-name"
specifies the variable in the TABLE= data table that contains the term ID.
| Default | "_termnum_" |
|---|
termInfo={terminfo_parm}
specifies the information about the terms table.
The terminfo_parm value can be one or more of the following:
* id="variable-name"
specifies the variable that contains the term ID.
label="variable-name"
specifies the variable that contains the text of the terms. This variable must be a text variable.
table={castable}
specifies the input data table that contains information about terms.
For more information about specifying the table parameter, see the common castable parameter (Appendix A: Common Parameters).
useOldNames=true | false
specifies whether to use the old variable names used in HPBOOLRULE
| Alias | legacyName, legacyNames |
|---|---|
| Default | false |
brTrain Action
Extracts Boolean rules from text.
Python Syntax
Summary: Input and Output Tables
If a row includes a subparameter, you can specify the name, caslib, and so on in the subparameter. Otherwise, you can specify the name, caslib, and so on in the parameter.
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
table |
specifies the information about the document table. | |
|
required parametertable |
— |
specifies the input data table for rule extraction. |
|
table |
specifies the information about the terms table. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
rules, ruleTerms, candidateTerms |
specifies the data tables that contain the results generated by the action. |
Parameter Descriptions
casOuts={output_parm}
specifies the data tables that contain the results generated by the action.
The output_parm value can be one or more of the following:
"candidateTerms":{casouttable}
specifies a data table to contain the terms that have been selected for rule creation.
For more information about specifying the candidateTerms parameter, see the common casouttable parameter (Appendix A: Common Parameters).
"ruleTerms":{casouttable}
specifies a data table to contain the terms in each rule that is generated by the action.
For more information about specifying the ruleTerms parameter, see the common casouttable parameter (Appendix A: Common Parameters).
"rules":{casouttable}
specifies a data table to contain the rules that have been generated by the action for each category.
For more information about specifying the rules parameter, see the common casouttable parameter (Appendix A: Common Parameters).
* docId="variable-name"
specifies the variable in the TABLE= data table that contains the document ID.
| Default | "_document_" |
|---|
docInfo={docinfo_parm}
specifies the information about the document table.
The docinfo_parm value can be one or more of the following:
"events":["string-1" <, "string-2", ...>]
specifies the values of target variables that are considered as positive events; incompatible with MULTICLASS target type.
* "id":"variable-name"
specifies the variable that contains the document ID.
"table":{castable}
specifies the input data table that contains information about documents.
For more information about specifying the table parameter, see the common castable parameter (Appendix A: Common Parameters).
"targetType":"BINARY" | "MULTICLASS" | "MULTILABEL"
specifies the type of the target variables, either BINARY or MULTICLASS.
| Default | BINARY |
|---|
"targets":["variable-name-1" <, "variable-name-2", ...>]
specifies the target variables.
gNegative=double
specifies the minimum g-score needed for a negative term to be considered for rule extraction.
| Alias | gNeg |
|---|---|
| Default | 8 |
| Range | 0–32767 |
gPositive=double
specifies the minimum g-score needed for a positive.
| Alias | gPos |
|---|---|
| Default | 8 |
| Range | 1–32767 |
mNegative=integer
specifies the m value for computing estimated precision for negative terms.
| Alias | mNeg |
|---|---|
| Default | 4 |
| Range | 0–32767 |
mPositive=integer
specifies the m value for computing estimated precision for positive terms.
| Alias | mPos |
|---|---|
| Default | 2 |
| Range | 1–32767 |
maxCandidates=integer
specifies the number of term candidates to be selected for each category.
| Default | 500 |
|---|---|
| Range | 0–32767 |
maxTriesIn=integer
specifies the k-in value for k-best search in the term ensemble process for creating rules.
| Default | 150 |
|---|---|
| Range | 0–32767 |
maxTriesOut=integer
specifies the k-out value for k-best search in the rule ensemble process for creating a rule set.
| Default | 50 |
|---|---|
| Range | 0–32767 |
minSupports=integer
specifies the minimum number of documents in which a term needs to appear in order for the term to be used for creating a rule.
| Default | 3 |
|---|---|
| Range | 0–32767 |
nThreads=integer
specifies the number of threads to be used per node. The value must be an integer.
| Default | 0 |
|---|---|
| Range | 0–1024 |
* table={castable}
specifies the input data table for rule extraction.
For more information about specifying the table parameter, see the common castable parameter (Appendix A: Common Parameters).
* termId="variable-name"
specifies the variable in the TABLE= data table that contains the term ID.
| Default | "_termnum_" |
|---|
termInfo={terminfo_parm}
specifies the information about the terms table.
The terminfo_parm value can be one or more of the following:
* "id":"variable-name"
specifies the variable that contains the term ID.
"label":"variable-name"
specifies the variable that contains the text of the terms. This variable must be a text variable.
"table":{castable}
specifies the input data table that contains information about terms.
For more information about specifying the table parameter, see the common castable parameter (Appendix A: Common Parameters).
useOldNames=True | False
specifies whether to use the old variable names used in HPBOOLRULE
| Alias | legacyName, legacyNames |
|---|---|
| Default | False |
brTrain Action
Extracts Boolean rules from text.
R Syntax
Summary: Input and Output Tables
If a row includes a subparameter, you can specify the name, caslib, and so on in the subparameter. Otherwise, you can specify the name, caslib, and so on in the parameter.
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
table |
specifies the information about the document table. | |
|
required parametertable |
— |
specifies the input data table for rule extraction. |
|
table |
specifies the information about the terms table. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
rules, ruleTerms, candidateTerms |
specifies the data tables that contain the results generated by the action. |
Parameter Descriptions
casOuts=list(output_parm)
specifies the data tables that contain the results generated by the action.
The output_parm value can be one or more of the following:
candidateTerms=list(casouttable)
specifies a data table to contain the terms that have been selected for rule creation.
For more information about specifying the candidateTerms parameter, see the common casouttable parameter (Appendix A: Common Parameters).
ruleTerms=list(casouttable)
specifies a data table to contain the terms in each rule that is generated by the action.
For more information about specifying the ruleTerms parameter, see the common casouttable parameter (Appendix A: Common Parameters).
rules=list(casouttable)
specifies a data table to contain the rules that have been generated by the action for each category.
For more information about specifying the rules parameter, see the common casouttable parameter (Appendix A: Common Parameters).
* docId="variable-name"
specifies the variable in the TABLE= data table that contains the document ID.
| Default | "_document_" |
|---|
docInfo=list(docinfo_parm)
specifies the information about the document table.
The docinfo_parm value can be one or more of the following:
events=list("string-1" <, "string-2", ...>)
specifies the values of target variables that are considered as positive events; incompatible with MULTICLASS target type.
* id="variable-name"
specifies the variable that contains the document ID.
table=list(castable)
specifies the input data table that contains information about documents.
For more information about specifying the table parameter, see the common castable parameter (Appendix A: Common Parameters).
targetType="BINARY" | "MULTICLASS" | "MULTILABEL"
specifies the type of the target variables, either BINARY or MULTICLASS.
| Default | BINARY |
|---|
targets=list("variable-name-1" <, "variable-name-2", ...>)
specifies the target variables.
gNegative=double
specifies the minimum g-score needed for a negative term to be considered for rule extraction.
| Alias | gNeg |
|---|---|
| Default | 8 |
| Range | 0–32767 |
gPositive=double
specifies the minimum g-score needed for a positive.
| Alias | gPos |
|---|---|
| Default | 8 |
| Range | 1–32767 |
mNegative=integer
specifies the m value for computing estimated precision for negative terms.
| Alias | mNeg |
|---|---|
| Default | 4 |
| Range | 0–32767 |
mPositive=integer
specifies the m value for computing estimated precision for positive terms.
| Alias | mPos |
|---|---|
| Default | 2 |
| Range | 1–32767 |
maxCandidates=integer
specifies the number of term candidates to be selected for each category.
| Default | 500 |
|---|---|
| Range | 0–32767 |
maxTriesIn=integer
specifies the k-in value for k-best search in the term ensemble process for creating rules.
| Default | 150 |
|---|---|
| Range | 0–32767 |
maxTriesOut=integer
specifies the k-out value for k-best search in the rule ensemble process for creating a rule set.
| Default | 50 |
|---|---|
| Range | 0–32767 |
minSupports=integer
specifies the minimum number of documents in which a term needs to appear in order for the term to be used for creating a rule.
| Default | 3 |
|---|---|
| Range | 0–32767 |
nThreads=integer
specifies the number of threads to be used per node. The value must be an integer.
| Default | 0 |
|---|---|
| Range | 0–1024 |
* table=list(castable)
specifies the input data table for rule extraction.
For more information about specifying the table parameter, see the common castable parameter (Appendix A: Common Parameters).
* termId="variable-name"
specifies the variable in the TABLE= data table that contains the term ID.
| Default | "_termnum_" |
|---|
termInfo=list(terminfo_parm)
specifies the information about the terms table.
The terminfo_parm value can be one or more of the following:
* id="variable-name"
specifies the variable that contains the term ID.
label="variable-name"
specifies the variable that contains the text of the terms. This variable must be a text variable.
table=list(castable)
specifies the input data table that contains information about terms.
For more information about specifying the table parameter, see the common castable parameter (Appendix A: Common Parameters).
useOldNames=TRUE | FALSE
specifies whether to use the old variable names used in HPBOOLRULE
| Alias | legacyName, legacyNames |
|---|---|
| Default | FALSE |