Support Vector Machine Action Set: Syntax
Provides actions for support vector machines
svmTrain Action
Provides actions for support vector machines.
CASL Syntax
Parameter Descriptions
attributes={{casinvardesc-1} <, {casinvardesc-2}, ...>}
alters attributes on variables used in this action.
For more information about specifying the attributes parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
c=double
specifies the penalty.
| Default | 1 |
| Minimum value (exclusive) | 0 |
code={aircodegen}
produces SAS score code.
For more information about specifying the code parameter, see the common aircodegen parameter (Appendix A: Common Parameters).
degree=integer
specifies the degree of the polynomial kernel.
| Default | 1 |
| Minimum value | 1 |
id={"variable-name-1" <, "variable-name-2", ...>}
specifies the variables to transfer to the generated table.
includeMissing=TRUE | FALSE
when set to True, includes missing values in the training.
| Default | FALSE |
inputs={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies variables to use for analysis.
For more information about specifying the inputs parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
iterationReport=TRUE | FALSE
when set to True, calculates the accuracy for each iteration.
| Alias | iterations |
| Default | FALSE |
maxiter=integer
specifies the maximum number of iterations.
| Default | 25 |
nominals={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies nominal variables to use for analysis.
For more information about specifying the nominals parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
noprint=TRUE | FALSE
when set to True, ignores the ODS tables.
| Default | FALSE |
noscale=TRUE | FALSE
when set to True, does not scale the interval variables.
| Default | FALSE |
output={outputStatement}
For more information about specifying the output parameter, see the common outputStatement parameter (Appendix A: Common Parameters).
partbyfrac={partByFracStatement}
| The partByFracStatement value can be one or more of the following: |
seed=integer
specifies the seed to use in the random number generator that is used for partitioning the data.
| Default | 0 |
test=double
randomly assigns the specified proportion of observations in the input table to the testing role. The sum of the fractions that are specified in the test and validate parameters must be less than 1.
| Range | 0–1 |
validate=double
randomly assigns the specified proportion of observations in the input table to the validation role. The sum of the fractions that are specified in the test and validate parameters must be less than 1.
| Alias | valid |
| Range | 0–1 |
partbyvar={partByVarStatement}
| Long form | partbyvar={name="variable-name"} |
| Shortcut form | partbyvar="variable-name" |
| The partByVarStatement value can be one or more of the following: |
* name="variable-name"
names the variable in the input table whose values are used to assign rows to each observation.
test="string"
specifies the formatted value of the variable that is used to assign observations to the testing role.
train="string"
specifies the formatted value of the variable that is used to assign observations to the training role. If you do not specify the train parameter, then all observations whose roles are not determined by the test and validate parameters are assigned to training.
validate="string"
specifies the formatted value of the variable that is used to assign observations to the validation role.
| Alias | valid |
printtarget=TRUE | FALSE
when set to True, generates the table for the target variable.
| Default | FALSE |
savestate={casouttable}
specifies to the table in which to save the model for future scoring.
| Long form | savestate={name="table-name"} |
| Shortcut form | savestate="table-name" |
caslib="string"
specifies the name of the caslib to use.
name="table-name"
specifies the name to associate with the table.
promote=TRUE | FALSE
when set to True, adds the output table with a global scope. This enables other sessions to access the table, subject to access controls. The target caslib must also have a global scope.
| Default | FALSE |
replace=TRUE | FALSE
when set to True, overwrites an existing table with the same name.
| Default | FALSE |
* 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 |
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 to use for analysis.
tolerance=double
specifies the tolerance.
| Default | 1e-06 |
svmTrain Action
Provides actions for support vector machines.
Lua Syntax
Parameter Descriptions
attributes={{casinvardesc-1} <, {casinvardesc-2}, ...>}
alters attributes on variables used in this action.
For more information about specifying the attributes parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
c=double
specifies the penalty.
| Default | 1 |
| Minimum value (exclusive) | 0 |
code={aircodegen}
produces SAS score code.
For more information about specifying the code parameter, see the common aircodegen parameter (Appendix A: Common Parameters).
degree=integer
specifies the degree of the polynomial kernel.
| Default | 1 |
| Minimum value | 1 |
id={"variable-name-1" <, "variable-name-2", ...>}
specifies the variables to transfer to the generated table.
includeMissing=true | false
when set to True, includes missing values in the training.
| Default | false |
inputs={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies variables to use for analysis.
For more information about specifying the inputs parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
iterationReport=true | false
when set to True, calculates the accuracy for each iteration.
| Alias | iterations |
| Default | false |
maxiter=integer
specifies the maximum number of iterations.
| Default | 25 |
nominals={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies nominal variables to use for analysis.
For more information about specifying the nominals parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
noprint=true | false
when set to True, ignores the ODS tables.
| Default | false |
noscale=true | false
when set to True, does not scale the interval variables.
| Default | false |
output={outputStatement}
For more information about specifying the output parameter, see the common outputStatement parameter (Appendix A: Common Parameters).
partbyfrac={partByFracStatement}
| The partByFracStatement value can be one or more of the following: |
seed=integer
specifies the seed to use in the random number generator that is used for partitioning the data.
| Default | 0 |
test=double
randomly assigns the specified proportion of observations in the input table to the testing role. The sum of the fractions that are specified in the test and validate parameters must be less than 1.
| Range | 0–1 |
validate=double
randomly assigns the specified proportion of observations in the input table to the validation role. The sum of the fractions that are specified in the test and validate parameters must be less than 1.
| Alias | valid |
| Range | 0–1 |
partbyvar={partByVarStatement}
| Long form | partbyvar={name="variable-name"} |
| Shortcut form | partbyvar="variable-name" |
| The partByVarStatement value can be one or more of the following: |
* name="variable-name"
names the variable in the input table whose values are used to assign rows to each observation.
test="string"
specifies the formatted value of the variable that is used to assign observations to the testing role.
train="string"
specifies the formatted value of the variable that is used to assign observations to the training role. If you do not specify the train parameter, then all observations whose roles are not determined by the test and validate parameters are assigned to training.
validate="string"
specifies the formatted value of the variable that is used to assign observations to the validation role.
| Alias | valid |
printtarget=true | false
when set to True, generates the table for the target variable.
| Default | false |
savestate={casouttable}
specifies to the table in which to save the model for future scoring.
| Long form | savestate={name="table-name"} |
| Shortcut form | savestate="table-name" |
caslib="string"
specifies the name of the caslib to use.
name="table-name"
specifies the name to associate with the table.
promote=true | false
when set to True, adds the output table with a global scope. This enables other sessions to access the table, subject to access controls. The target caslib must also have a global scope.
| Default | false |
replace=true | false
when set to True, overwrites an existing table with the same name.
| Default | false |
* 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 |
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 to use for analysis.
tolerance=double
specifies the tolerance.
| Default | 1e-06 |
svmTrain Action
Provides actions for support vector machines.
Python Syntax
Parameter Descriptions
attributes=[{casinvardesc-1} <, {casinvardesc-2}, ...>]
alters attributes on variables used in this action.
For more information about specifying the attributes parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
c=double
specifies the penalty.
| Default | 1 |
| Minimum value (exclusive) | 0 |
code={aircodegen}
produces SAS score code.
For more information about specifying the code parameter, see the common aircodegen parameter (Appendix A: Common Parameters).
degree=integer
specifies the degree of the polynomial kernel.
| Default | 1 |
| Minimum value | 1 |
id=["variable-name-1" <, "variable-name-2", ...>]
specifies the variables to transfer to the generated table.
includeMissing=True | False
when set to True, includes missing values in the training.
| Default | False |
inputs=[{casinvardesc-1} <, {casinvardesc-2}, ...>]
specifies variables to use for analysis.
For more information about specifying the inputs parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
iterationReport=True | False
when set to True, calculates the accuracy for each iteration.
| Alias | iterations |
| Default | False |
maxiter=integer
specifies the maximum number of iterations.
| Default | 25 |
nominals=[{casinvardesc-1} <, {casinvardesc-2}, ...>]
specifies nominal variables to use for analysis.
For more information about specifying the nominals parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
noprint=True | False
when set to True, ignores the ODS tables.
| Default | False |
noscale=True | False
when set to True, does not scale the interval variables.
| Default | False |
output={outputStatement}
For more information about specifying the output parameter, see the common outputStatement parameter (Appendix A: Common Parameters).
partbyfrac={partByFracStatement}
| The partByFracStatement value can be one or more of the following: |
"seed":integer
specifies the seed to use in the random number generator that is used for partitioning the data.
| Default | 0 |
"test":double
randomly assigns the specified proportion of observations in the input table to the testing role. The sum of the fractions that are specified in the test and validate parameters must be less than 1.
| Range | 0–1 |
"validate":double
randomly assigns the specified proportion of observations in the input table to the validation role. The sum of the fractions that are specified in the test and validate parameters must be less than 1.
| Alias | valid |
| Range | 0–1 |
partbyvar={partByVarStatement}
| Long form | partbyvar={"name":"variable-name"} |
| Shortcut form | partbyvar="variable-name" |
| The partByVarStatement value can be one or more of the following: |
* "name":"variable-name"
names the variable in the input table whose values are used to assign rows to each observation.
"test":"string"
specifies the formatted value of the variable that is used to assign observations to the testing role.
"train":"string"
specifies the formatted value of the variable that is used to assign observations to the training role. If you do not specify the train parameter, then all observations whose roles are not determined by the test and validate parameters are assigned to training.
"validate":"string"
specifies the formatted value of the variable that is used to assign observations to the validation role.
| Alias | valid |
printtarget=True | False
when set to True, generates the table for the target variable.
| Default | False |
savestate={casouttable}
specifies to the table in which to save the model for future scoring.
| Long form | savestate={"name":"table-name"} |
| Shortcut form | savestate="table-name" |
"caslib":"string"
specifies the name of the caslib to use.
"name":"table-name"
specifies the name to associate with the table.
"promote":True | False
when set to True, adds the output table with a global scope. This enables other sessions to access the table, subject to access controls. The target caslib must also have a global scope.
| Default | False |
"replace":True | False
when set to True, overwrites an existing table with the same name.
| Default | False |
* 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 |
"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 to use for analysis.
tolerance=double
specifies the tolerance.
| Default | 1e-06 |
svmTrain Action
Provides actions for support vector machines.
R Syntax
Parameter Descriptions
attributes=list( list(casinvardesc-1) <, list(casinvardesc-2), ...>)
alters attributes on variables used in this action.
For more information about specifying the attributes parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
c=double
specifies the penalty.
| Default | 1 |
| Minimum value (exclusive) | 0 |
code=list(aircodegen)
produces SAS score code.
For more information about specifying the code parameter, see the common aircodegen parameter (Appendix A: Common Parameters).
degree=integer
specifies the degree of the polynomial kernel.
| Default | 1 |
| Minimum value | 1 |
id=list("variable-name-1" <, "variable-name-2", ...>)
specifies the variables to transfer to the generated table.
includeMissing=TRUE | FALSE
when set to True, includes missing values in the training.
| Default | FALSE |
inputs=list( list(casinvardesc-1) <, list(casinvardesc-2), ...>)
specifies variables to use for analysis.
For more information about specifying the inputs parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
iterationReport=TRUE | FALSE
when set to True, calculates the accuracy for each iteration.
| Alias | iterations |
| Default | FALSE |
maxiter=integer
specifies the maximum number of iterations.
| Default | 25 |
nominals=list( list(casinvardesc-1) <, list(casinvardesc-2), ...>)
specifies nominal variables to use for analysis.
For more information about specifying the nominals parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
noprint=TRUE | FALSE
when set to True, ignores the ODS tables.
| Default | FALSE |
noscale=TRUE | FALSE
when set to True, does not scale the interval variables.
| Default | FALSE |
output=list(outputStatement)
For more information about specifying the output parameter, see the common outputStatement parameter (Appendix A: Common Parameters).
partbyfrac=list(partByFracStatement)
| The partByFracStatement value can be one or more of the following: |
seed=integer
specifies the seed to use in the random number generator that is used for partitioning the data.
| Default | 0 |
test=double
randomly assigns the specified proportion of observations in the input table to the testing role. The sum of the fractions that are specified in the test and validate parameters must be less than 1.
| Range | 0–1 |
validate=double
randomly assigns the specified proportion of observations in the input table to the validation role. The sum of the fractions that are specified in the test and validate parameters must be less than 1.
| Alias | valid |
| Range | 0–1 |
partbyvar=list(partByVarStatement)
| Long form | partbyvar=list(name="variable-name") |
| Shortcut form | partbyvar="variable-name" |
| The partByVarStatement value can be one or more of the following: |
* name="variable-name"
names the variable in the input table whose values are used to assign rows to each observation.
test="string"
specifies the formatted value of the variable that is used to assign observations to the testing role.
train="string"
specifies the formatted value of the variable that is used to assign observations to the training role. If you do not specify the train parameter, then all observations whose roles are not determined by the test and validate parameters are assigned to training.
validate="string"
specifies the formatted value of the variable that is used to assign observations to the validation role.
| Alias | valid |
printtarget=TRUE | FALSE
when set to True, generates the table for the target variable.
| Default | FALSE |
savestate=list(casouttable)
specifies to the table in which to save the model for future scoring.
| Long form | savestate=list(name="table-name") |
| Shortcut form | savestate="table-name" |
caslib="string"
specifies the name of the caslib to use.
name="table-name"
specifies the name to associate with the table.
promote=TRUE | FALSE
when set to True, adds the output table with a global scope. This enables other sessions to access the table, subject to access controls. The target caslib must also have a global scope.
| Default | FALSE |
replace=TRUE | FALSE
when set to True, overwrites an existing table with the same name.
| Default | FALSE |
* 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 |
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 to use for analysis.
tolerance=double
specifies the tolerance.
| Default | 1e-06 |