Factorization Machine Action Set: Syntax
Provides actions for factorization machines
factmac Action
Learns a factorization machine model.
CASL Syntax
Parameter Descriptions
attributes={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the variable attributes.
For more information about specifying the attributes parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
code={aircodegen}
produces SAS score code.
For more information about specifying the code parameter, see the common aircodegen parameter (Appendix A: Common Parameters).
codeGroup="string"
specifies the code group.
display={displayTables}
specifies a list of results tables to send to the client for display.
For more information about specifying the display parameter, see the common displayTables parameter (Appendix A: Common Parameters).
freq="variable-name"
specifies the frequency variable.
id={"variable-name-1" <, "variable-name-2", ...>}
specifies the variables to use as record identifiers and to transfer to the state output table.
inputs={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the variables to be used in the training.
For more information about specifying the inputs parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
learnStep=double
specifies the learning step size for the optimization.
| Default | 0.001 |
maxIter=integer
specifies the maximum number of iterations.
| Default | 30 |
modelId="string"
specifies the model ID variable name.
nFactors=integer
specifies the number of factors to be estimated.
| Default | 5 |
nominals={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the nominal variables to be used in the training.
For more information about specifying the nominals parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
nonNegative=TRUE | FALSE
when set to True, performs nonnegative factorization.
| Default | FALSE |
outModel={casouttable}
specifies the output data table in which to save the estimated factorization machine parameters.
For more information about specifying the outModel parameter, see the common casouttable parameter (Appendix A: Common Parameters).
output={outputStatement}
specifies the output data table in which to save the scored observations.
For more information about specifying the output parameter, see the common outputStatement parameter (Appendix A: Common Parameters).
outputTables={outputTables}
lists the names of results tables to save as CAS tables on the server.
For more information about specifying the outputTables parameter, see the common outputTables parameter (Appendix A: Common Parameters).
printTarget=TRUE | FALSE
when set to True, produces an output table containing the name of the predicted target variable.
| Default | FALSE |
saveState={casouttable}
specifies the output data table in which to save the state of the factorization machine for future scoring.
For more information about specifying the saveState parameter, see the common casouttable parameter (Appendix A: Common Parameters).
seed=double
specifies the seed value for random number generation.
| Default | 0 |
* table={castable}
specifies the settings for an input table.
| Long form | table={name="table-name"} |
| Shortcut form | table="table-name" |
| The castable value can be one or more of the following: |
caslib="string"
specifies the caslib that contains the table that you want to use with the action. By default, the active caslib is used. Specify a value only if you need to access a table from a different caslib.
computedOnDemand=TRUE | FALSE
when set to True, creates the computed variables when the table is loaded instead of when the action begins.
| Alias | compOnDemand |
| Default | FALSE |
computedVars={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the names of the computed variables to create. Specify an expression for each variable in the computedVarsProgram parameter.
| Alias | compVars |
format="string"
specifies the format to apply to the variable.
formattedLength=integer
specifies the length of format field plus the format precision.
label="string"
specifies the descriptive label for the variable.
* name="variable-name"
specifies the name for the variable.
nfd=integer
specifies the length of the format precision.
nfl=integer
specifies the length of the format field.
computedVarsProgram="string"
specifies an expression for each computed variable that you include in the computedVars parameter.
| Alias | compPgm |
dataSourceOptions={key-1=any-list-or-data-type-1 <, key-2=any-list-or-data-type-2, ...>}
specifies data source options.
| Alias | options, dataSource |
groupByMode="NOSORT" | "REDISTRIBUTE"
importOptions={fileType="AUTO" | "BASESAS" | "CSV" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "JMP" | "LASR" | "SPSS" | "XLS", fileType-specific-parameters}
specifies the settings for reading a table from a data source.
| Alias | import |
The value that you specify for fileType determines the other parameters that apply. For more information about this common parameter, see importOptions (Appendix A: Common Parameters).
* name="table-name"
specifies the name of the table to use.
onDemand=TRUE | FALSE
This parameter is deprecated.
| Default | TRUE |
singlePass=TRUE | FALSE
when set to True, does not create a transient table on the server. Setting this parameter to True can be efficient, but the data might not have stable ordering upon repeated runs.
| Default | FALSE |
vars={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the variables to use in the action.
format="string"
specifies the format to apply to the variable.
formattedLength=integer
specifies the length of format field plus the format precision.
label="string"
specifies the descriptive label for the variable.
* name="variable-name"
specifies the name for the variable.
nfd=integer
specifies the length of the format precision.
nfl=integer
specifies the length of the format field.
where="where-expression"
specifies an expression for subsetting the input data.
target="variable-name"
specifies the target variable.
factmac Action
Learns a factorization machine model.
Lua Syntax
Parameter Descriptions
attributes={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the variable attributes.
For more information about specifying the attributes parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
code={aircodegen}
produces SAS score code.
For more information about specifying the code parameter, see the common aircodegen parameter (Appendix A: Common Parameters).
codeGroup="string"
specifies the code group.
display={displayTables}
specifies a list of results tables to send to the client for display.
For more information about specifying the display parameter, see the common displayTables parameter (Appendix A: Common Parameters).
freq="variable-name"
specifies the frequency variable.
id={"variable-name-1" <, "variable-name-2", ...>}
specifies the variables to use as record identifiers and to transfer to the state output table.
inputs={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the variables to be used in the training.
For more information about specifying the inputs parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
learnStep=double
specifies the learning step size for the optimization.
| Default | 0.001 |
maxIter=integer
specifies the maximum number of iterations.
| Default | 30 |
modelId="string"
specifies the model ID variable name.
nFactors=integer
specifies the number of factors to be estimated.
| Default | 5 |
nominals={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the nominal variables to be used in the training.
For more information about specifying the nominals parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
nonNegative=true | false
when set to True, performs nonnegative factorization.
| Default | false |
outModel={casouttable}
specifies the output data table in which to save the estimated factorization machine parameters.
For more information about specifying the outModel parameter, see the common casouttable parameter (Appendix A: Common Parameters).
output={outputStatement}
specifies the output data table in which to save the scored observations.
For more information about specifying the output parameter, see the common outputStatement parameter (Appendix A: Common Parameters).
outputTables={outputTables}
lists the names of results tables to save as CAS tables on the server.
For more information about specifying the outputTables parameter, see the common outputTables parameter (Appendix A: Common Parameters).
printTarget=true | false
when set to True, produces an output table containing the name of the predicted target variable.
| Default | false |
saveState={casouttable}
specifies the output data table in which to save the state of the factorization machine for future scoring.
For more information about specifying the saveState parameter, see the common casouttable parameter (Appendix A: Common Parameters).
seed=double
specifies the seed value for random number generation.
| Default | 0 |
* table={castable}
specifies the settings for an input table.
| Long form | table={name="table-name"} |
| Shortcut form | table="table-name" |
| The castable value can be one or more of the following: |
caslib="string"
specifies the caslib that contains the table that you want to use with the action. By default, the active caslib is used. Specify a value only if you need to access a table from a different caslib.
computedOnDemand=true | false
when set to True, creates the computed variables when the table is loaded instead of when the action begins.
| Alias | compOnDemand |
| Default | false |
computedVars={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the names of the computed variables to create. Specify an expression for each variable in the computedVarsProgram parameter.
| Alias | compVars |
format="string"
specifies the format to apply to the variable.
formattedLength=integer
specifies the length of format field plus the format precision.
label="string"
specifies the descriptive label for the variable.
* name="variable-name"
specifies the name for the variable.
nfd=integer
specifies the length of the format precision.
nfl=integer
specifies the length of the format field.
computedVarsProgram="string"
specifies an expression for each computed variable that you include in the computedVars parameter.
| Alias | compPgm |
dataSourceOptions={key-1=any-list-or-data-type-1 <, key-2=any-list-or-data-type-2, ...>}
specifies data source options.
| Alias | options, dataSource |
groupByMode="NOSORT" | "REDISTRIBUTE"
importOptions={fileType="AUTO" | "BASESAS" | "CSV" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "JMP" | "LASR" | "SPSS" | "XLS", fileType-specific-parameters}
specifies the settings for reading a table from a data source.
| Alias | import |
The value that you specify for fileType determines the other parameters that apply. For more information about this common parameter, see importOptions (Appendix A: Common Parameters).
* name="table-name"
specifies the name of the table to use.
onDemand=true | false
This parameter is deprecated.
| Default | true |
singlePass=true | false
when set to True, does not create a transient table on the server. Setting this parameter to True can be efficient, but the data might not have stable ordering upon repeated runs.
| Default | false |
vars={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the variables to use in the action.
format="string"
specifies the format to apply to the variable.
formattedLength=integer
specifies the length of format field plus the format precision.
label="string"
specifies the descriptive label for the variable.
* name="variable-name"
specifies the name for the variable.
nfd=integer
specifies the length of the format precision.
nfl=integer
specifies the length of the format field.
where="where-expression"
specifies an expression for subsetting the input data.
target="variable-name"
specifies the target variable.
factmac Action
Learns a factorization machine model.
Python Syntax
Parameter Descriptions
attributes=[{casinvardesc-1} <, {casinvardesc-2}, ...>]
specifies the variable attributes.
For more information about specifying the attributes parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
code={aircodegen}
produces SAS score code.
For more information about specifying the code parameter, see the common aircodegen parameter (Appendix A: Common Parameters).
codeGroup="string"
specifies the code group.
display={displayTables}
specifies a list of results tables to send to the client for display.
For more information about specifying the display parameter, see the common displayTables parameter (Appendix A: Common Parameters).
freq="variable-name"
specifies the frequency variable.
id=["variable-name-1" <, "variable-name-2", ...>]
specifies the variables to use as record identifiers and to transfer to the state output table.
inputs=[{casinvardesc-1} <, {casinvardesc-2}, ...>]
specifies the variables to be used in the training.
For more information about specifying the inputs parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
learnStep=double
specifies the learning step size for the optimization.
| Default | 0.001 |
maxIter=integer
specifies the maximum number of iterations.
| Default | 30 |
modelId="string"
specifies the model ID variable name.
nFactors=integer
specifies the number of factors to be estimated.
| Default | 5 |
nominals=[{casinvardesc-1} <, {casinvardesc-2}, ...>]
specifies the nominal variables to be used in the training.
For more information about specifying the nominals parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
nonNegative=True | False
when set to True, performs nonnegative factorization.
| Default | False |
outModel={casouttable}
specifies the output data table in which to save the estimated factorization machine parameters.
For more information about specifying the outModel parameter, see the common casouttable parameter (Appendix A: Common Parameters).
output={outputStatement}
specifies the output data table in which to save the scored observations.
For more information about specifying the output parameter, see the common outputStatement parameter (Appendix A: Common Parameters).
outputTables={outputTables}
lists the names of results tables to save as CAS tables on the server.
For more information about specifying the outputTables parameter, see the common outputTables parameter (Appendix A: Common Parameters).
printTarget=True | False
when set to True, produces an output table containing the name of the predicted target variable.
| Default | False |
saveState={casouttable}
specifies the output data table in which to save the state of the factorization machine for future scoring.
For more information about specifying the saveState parameter, see the common casouttable parameter (Appendix A: Common Parameters).
seed=double
specifies the seed value for random number generation.
| Default | 0 |
* table={castable}
specifies the settings for an input table.
| Long form | table={"name":"table-name"} |
| Shortcut form | table="table-name" |
| The castable value can be one or more of the following: |
"caslib":"string"
specifies the caslib that contains the table that you want to use with the action. By default, the active caslib is used. Specify a value only if you need to access a table from a different caslib.
"computedOnDemand":True | False
when set to True, creates the computed variables when the table is loaded instead of when the action begins.
| Alias | compOnDemand |
| Default | False |
"computedVars":[{casinvardesc-1} <, {casinvardesc-2}, ...>]
specifies the names of the computed variables to create. Specify an expression for each variable in the computedVarsProgram parameter.
| Alias | compVars |
"format":"string"
specifies the format to apply to the variable.
"formattedLength":integer
specifies the length of format field plus the format precision.
"label":"string"
specifies the descriptive label for the variable.
* "name":"variable-name"
specifies the name for the variable.
"nfd":integer
specifies the length of the format precision.
"nfl":integer
specifies the length of the format field.
"computedVarsProgram":"string"
specifies an expression for each computed variable that you include in the computedVars parameter.
| Alias | compPgm |
"dataSourceOptions":{"key-1":{any-list-or-data-type-1} <, "key-2":{any-list-or-data-type-2}, ...>}
specifies data source options.
| Alias | options, dataSource |
"groupByMode":"NOSORT" | "REDISTRIBUTE"
"importOptions":{fileType="AUTO" | "BASESAS" | "CSV" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "JMP" | "LASR" | "SPSS" | "XLS", fileType-specific-parameters}
specifies the settings for reading a table from a data source.
| Alias | import_ |
The value that you specify for fileType determines the other parameters that apply. For more information about this common parameter, see importOptions (Appendix A: Common Parameters).
* "name":"table-name"
specifies the name of the table to use.
"onDemand":True | False
This parameter is deprecated.
| Default | True |
"singlePass":True | False
when set to True, does not create a transient table on the server. Setting this parameter to True can be efficient, but the data might not have stable ordering upon repeated runs.
| Default | False |
"vars":[{casinvardesc-1} <, {casinvardesc-2}, ...>]
specifies the variables to use in the action.
"format":"string"
specifies the format to apply to the variable.
"formattedLength":integer
specifies the length of format field plus the format precision.
"label":"string"
specifies the descriptive label for the variable.
* "name":"variable-name"
specifies the name for the variable.
"nfd":integer
specifies the length of the format precision.
"nfl":integer
specifies the length of the format field.
"where":"where-expression"
specifies an expression for subsetting the input data.
target="variable-name"
specifies the target variable.
factmac Action
Learns a factorization machine model.
R Syntax
Parameter Descriptions
attributes=list( list(casinvardesc-1) <, list(casinvardesc-2), ...>)
specifies the variable attributes.
For more information about specifying the attributes parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
code=list(aircodegen)
produces SAS score code.
For more information about specifying the code parameter, see the common aircodegen parameter (Appendix A: Common Parameters).
codeGroup="string"
specifies the code group.
display=list(displayTables)
specifies a list of results tables to send to the client for display.
For more information about specifying the display parameter, see the common displayTables parameter (Appendix A: Common Parameters).
freq="variable-name"
specifies the frequency variable.
id=list("variable-name-1" <, "variable-name-2", ...>)
specifies the variables to use as record identifiers and to transfer to the state output table.
inputs=list( list(casinvardesc-1) <, list(casinvardesc-2), ...>)
specifies the variables to be used in the training.
For more information about specifying the inputs parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
learnStep=double
specifies the learning step size for the optimization.
| Default | 0.001 |
maxIter=integer
specifies the maximum number of iterations.
| Default | 30 |
modelId="string"
specifies the model ID variable name.
nFactors=integer
specifies the number of factors to be estimated.
| Default | 5 |
nominals=list( list(casinvardesc-1) <, list(casinvardesc-2), ...>)
specifies the nominal variables to be used in the training.
For more information about specifying the nominals parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
nonNegative=TRUE | FALSE
when set to True, performs nonnegative factorization.
| Default | FALSE |
outModel=list(casouttable)
specifies the output data table in which to save the estimated factorization machine parameters.
For more information about specifying the outModel parameter, see the common casouttable parameter (Appendix A: Common Parameters).
output=list(outputStatement)
specifies the output data table in which to save the scored observations.
For more information about specifying the output parameter, see the common outputStatement parameter (Appendix A: Common Parameters).
outputTables=list(outputTables)
lists the names of results tables to save as CAS tables on the server.
For more information about specifying the outputTables parameter, see the common outputTables parameter (Appendix A: Common Parameters).
printTarget=TRUE | FALSE
when set to True, produces an output table containing the name of the predicted target variable.
| Default | FALSE |
saveState=list(casouttable)
specifies the output data table in which to save the state of the factorization machine for future scoring.
For more information about specifying the saveState parameter, see the common casouttable parameter (Appendix A: Common Parameters).
seed=double
specifies the seed value for random number generation.
| Default | 0 |
* table=list(castable)
specifies the settings for an input table.
| Long form | table=list(name="table-name") |
| Shortcut form | table="table-name" |
| The castable value can be one or more of the following: |
caslib="string"
specifies the caslib that contains the table that you want to use with the action. By default, the active caslib is used. Specify a value only if you need to access a table from a different caslib.
computedOnDemand=TRUE | FALSE
when set to True, creates the computed variables when the table is loaded instead of when the action begins.
| Alias | compOnDemand |
| Default | FALSE |
computedVars=list( list(casinvardesc-1) <, list(casinvardesc-2), ...>)
specifies the names of the computed variables to create. Specify an expression for each variable in the computedVarsProgram parameter.
| Alias | compVars |
format="string"
specifies the format to apply to the variable.
formattedLength=integer
specifies the length of format field plus the format precision.
label="string"
specifies the descriptive label for the variable.
* name="variable-name"
specifies the name for the variable.
nfd=integer
specifies the length of the format precision.
nfl=integer
specifies the length of the format field.
computedVarsProgram="string"
specifies an expression for each computed variable that you include in the computedVars parameter.
| Alias | compPgm |
dataSourceOptions=list(key-1=list(any-list-or-data-type-1) <, key-2=list(any-list-or-data-type-2), ...>)
specifies data source options.
| Alias | options, dataSource |
groupByMode="NOSORT" | "REDISTRIBUTE"
importOptions=list(fileType="AUTO" | "BASESAS" | "CSV" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "JMP" | "LASR" | "SPSS" | "XLS", fileType-specific-parameters)
specifies the settings for reading a table from a data source.
| Alias | import |
The value that you specify for fileType determines the other parameters that apply. For more information about this common parameter, see importOptions (Appendix A: Common Parameters).
* name="table-name"
specifies the name of the table to use.
onDemand=TRUE | FALSE
This parameter is deprecated.
| Default | TRUE |
singlePass=TRUE | FALSE
when set to True, does not create a transient table on the server. Setting this parameter to True can be efficient, but the data might not have stable ordering upon repeated runs.
| Default | FALSE |
vars=list( list(casinvardesc-1) <, list(casinvardesc-2), ...>)
specifies the variables to use in the action.
format="string"
specifies the format to apply to the variable.
formattedLength=integer
specifies the length of format field plus the format precision.
label="string"
specifies the descriptive label for the variable.
* name="variable-name"
specifies the name for the variable.
nfd=integer
specifies the length of the format precision.
nfl=integer
specifies the length of the format field.
where="where-expression"
specifies an expression for subsetting the input data.
target="variable-name"
specifies the target variable.