Nominal Variables Dimension Reduction Action Set
Provides actions for nominal variables dimension reduction
mca Action
Reduces the dimensionality of nominal variables by using a multiple correspondence analysis.
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 |
|---|---|---|
|
required parametertable |
— |
specifies the input table. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
required parametercasOut |
specifies the output data table that contains the values of the reduced variables for the training nominal data. | |
|
names |
lists the names of results tables to save as CAS tables on the server. | |
|
— |
specifies the output data table in which to save the dimensionality reduction model of the nominal variables for future scoring. |
Parameter Descriptions
cumVariance=double
specifies the minimum cumulative proportion of variance that must be explained by the reduced variables. You must specify either the cumVariance or dimensions parameter. If you specify both parameters, the cumVariance parameter is ignored.
| Alias | cumulativeVarianceProportion |
|---|---|
| Range | (0–1] |
dimensions=integer
specifies the number of reduced variables. You must specify either the dimensions or cumVariance parameter. If you specify both parameters, the cumVariance parameter is ignored.
| Aliases | dim |
|---|---|
| dimension | |
| dimens | |
| Minimum value | 1 |
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.
| Alias | frequency |
|---|
id={"variable-name-1" <, "variable-name-2", ...>}
specifies the variables to use as record identifiers and to transfer to the output table that you specify in the output parameter.
inputs={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the variables to use in the analysis.
For more information about specifying the inputs parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
| Alias | input |
|---|
nominals={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the nominal variables to use in the training.
For more information about specifying the nominals parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
| Alias | nominal |
|---|
nThreads=integer
specifies the number of threads to use per node. By default, or when you set the integer value to 0, the number of threads is equal to the number of CPUs on the machine.
| Alias | nThread |
|---|---|
| Range | 0–64 |
output={outputStatement}
specifies the output data table that contains the values of the reduced variables for the training nominal data.
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).
| Alias | DISPLAYOUT |
|---|
prefix="string"
specifies a prefix to apply to the names of the reduced variables.
| Aliases | reducedVarNamePrefix |
|---|---|
| reducedVarsNamePrefix | |
| Default | "rv" |
saveState={casouttable}
specifies the output data table in which to save the dimensionality reduction model of the nominal variables for future scoring.
For more information about specifying the saveState parameter, see the common casouttable (Form 1) parameter (Appendix A: Common Parameters).
| Alias | saveModel |
|---|
svdMethod="EXACT" | "RANDOM"
specifies the singular value decomposition (SVD) method to use in the training. If you set this parameter to "RANDOM", the randomized SVD method is used. This method is much faster than the exact SVD method, but it provides an approximate solution rather than an exact one. You should use it only when the total number of levels is so large that it takes a long time for the exact SVD method to run. The randomized SVD method is only compatible when you specify the dimensions parameter. If you specify the cumVariance parameter, the exact SVD method is used and the svdMethod and svdPower parameters are ignored.
| Default | EXACT |
|---|
svdPower=integer
specifies the parameter power (number of power iterations) for the randomized SVD method to use when the svdMethod parameter value is "RANDOM". A larger integer value results in greater accuracy but slower execution. The minimum integer value is 1. Although there is no maximum value, you should specify an integer value no greater than 10. The svdPower parameter is ignored if the exact SVD method is used.
| Aliases | randIter |
|---|---|
| randIters | |
| Default | 3 |
| Minimum value | 1 |
* table={castable}
specifies the 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 for the input 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. If you do not specify this parameter, then all variables from computedVarsProgram are automatically included.
| Alias | compVars |
|---|
The casinvardesc value can be one or more of the following:
format="string"
specifies the format to apply to the variable.
formattedLength=integer
specifies the length of the format field plus the length of 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.
| Aliases | options |
|---|---|
| dataSource |
groupByMode="NOSORT" | "REDISTRIBUTE"
importOptions={fileType="ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters}
specifies the settings for reading a table from a data source.
| Alias | import |
|---|
For more information about specifying the importOptions parameter, see the common importOptions parameter (Appendix A: Common Parameters).
* name="table-name"
specifies the name of the input table.
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.
The casinvardesc value can be one or more of the following:
format="string"
specifies the format to apply to the variable.
formattedLength=integer
specifies the length of the format field plus the length of 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.
whereTable={groupbytable}
specifies an input table that contains rows to use as a WHERE filter. If the vars parameter is not specified, then all the variable names that are common to the input table and the filtering table are used to find matching rows. If the where parameter for the input table and this parameter are specified, then this filtering table is applied first.
The groupbytable value can be one or more of the following:
casLib="string"
specifies the caslib for the filter table. By default, the active caslib is used.
dataSourceOptions={adls_noreq-parameters | bigquery-parameters | cas_noreq-parameters | clouddex-parameters | db2-parameters | dnfs-parameters | esp-parameters | fedsvr-parameters | gcs_noreq-parameters | hadoop-parameters | hana-parameters | impala-parameters | informix-parameters | jdbc-parameters | mongodb-parameters | mysql-parameters | odbc-parameters | oracle-parameters | path-parameters | postgres-parameters | redshift-parameters | s3-parameters | sapiq-parameters | sforce-parameters | singlestore_standard-parameters | snowflake-parameters | spark-parameters | spde-parameters | sqlserver-parameters | ss_noreq-parameters | teradata-parameters | vertica-parameters | yellowbrick-parameters}
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter (Appendix A: Common Parameters).
importOptions={fileType="ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters}
specifies the settings for reading a table from a data source.
| Alias | import |
|---|
For more information about specifying the importOptions parameter, see the common importOptions parameter (Appendix A: Common Parameters).
* name="table-name"
specifies the name of the filter table.
vars={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the variable names to use from the filter table.
The casinvardesc value can be one or more of the following:
format="string"
specifies the format to apply to the variable.
formattedLength=integer
specifies the length of the format field plus the length of 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 data from the filter table.
mca Action
Reduces the dimensionality of nominal variables by using a multiple correspondence analysis.
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 |
|---|---|---|
|
required parametertable |
— |
specifies the input table. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
required parametercasOut |
specifies the output data table that contains the values of the reduced variables for the training nominal data. | |
|
names |
lists the names of results tables to save as CAS tables on the server. | |
|
— |
specifies the output data table in which to save the dimensionality reduction model of the nominal variables for future scoring. |
Parameter Descriptions
cumVariance=double
specifies the minimum cumulative proportion of variance that must be explained by the reduced variables. You must specify either the cumVariance or dimensions parameter. If you specify both parameters, the cumVariance parameter is ignored.
| Alias | cumulativeVarianceProportion |
|---|---|
| Range | (0–1] |
dimensions=integer
specifies the number of reduced variables. You must specify either the dimensions or cumVariance parameter. If you specify both parameters, the cumVariance parameter is ignored.
| Aliases | dim |
|---|---|
| dimension | |
| dimens | |
| Minimum value | 1 |
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.
| Alias | frequency |
|---|
id={"variable-name-1" <, "variable-name-2", ...>}
specifies the variables to use as record identifiers and to transfer to the output table that you specify in the output parameter.
inputs={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the variables to use in the analysis.
For more information about specifying the inputs parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
| Alias | input |
|---|
nominals={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the nominal variables to use in the training.
For more information about specifying the nominals parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
| Alias | nominal |
|---|
nThreads=integer
specifies the number of threads to use per node. By default, or when you set the integer value to 0, the number of threads is equal to the number of CPUs on the machine.
| Alias | nThread |
|---|---|
| Range | 0–64 |
output={outputStatement}
specifies the output data table that contains the values of the reduced variables for the training nominal data.
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).
| Alias | DISPLAYOUT |
|---|
prefix="string"
specifies a prefix to apply to the names of the reduced variables.
| Aliases | reducedVarNamePrefix |
|---|---|
| reducedVarsNamePrefix | |
| Default | "rv" |
saveState={casouttable}
specifies the output data table in which to save the dimensionality reduction model of the nominal variables for future scoring.
For more information about specifying the saveState parameter, see the common casouttable (Form 1) parameter (Appendix A: Common Parameters).
| Alias | saveModel |
|---|
svdMethod="EXACT" | "RANDOM"
specifies the singular value decomposition (SVD) method to use in the training. If you set this parameter to "RANDOM", the randomized SVD method is used. This method is much faster than the exact SVD method, but it provides an approximate solution rather than an exact one. You should use it only when the total number of levels is so large that it takes a long time for the exact SVD method to run. The randomized SVD method is only compatible when you specify the dimensions parameter. If you specify the cumVariance parameter, the exact SVD method is used and the svdMethod and svdPower parameters are ignored.
| Default | EXACT |
|---|
svdPower=integer
specifies the parameter power (number of power iterations) for the randomized SVD method to use when the svdMethod parameter value is "RANDOM". A larger integer value results in greater accuracy but slower execution. The minimum integer value is 1. Although there is no maximum value, you should specify an integer value no greater than 10. The svdPower parameter is ignored if the exact SVD method is used.
| Aliases | randIter |
|---|---|
| randIters | |
| Default | 3 |
| Minimum value | 1 |
* table={castable}
specifies the 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 for the input 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. If you do not specify this parameter, then all variables from computedVarsProgram are automatically included.
| Alias | compVars |
|---|
The casinvardesc value can be one or more of the following:
format="string"
specifies the format to apply to the variable.
formattedLength=integer
specifies the length of the format field plus the length of 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.
| Aliases | options |
|---|---|
| dataSource |
groupByMode="NOSORT" | "REDISTRIBUTE"
importOptions={fileType="ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters}
specifies the settings for reading a table from a data source.
| Alias | import |
|---|
For more information about specifying the importOptions parameter, see the common importOptions parameter (Appendix A: Common Parameters).
* name="table-name"
specifies the name of the input table.
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.
The casinvardesc value can be one or more of the following:
format="string"
specifies the format to apply to the variable.
formattedLength=integer
specifies the length of the format field plus the length of 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.
whereTable={groupbytable}
specifies an input table that contains rows to use as a WHERE filter. If the vars parameter is not specified, then all the variable names that are common to the input table and the filtering table are used to find matching rows. If the where parameter for the input table and this parameter are specified, then this filtering table is applied first.
The groupbytable value can be one or more of the following:
casLib="string"
specifies the caslib for the filter table. By default, the active caslib is used.
dataSourceOptions={adls_noreq-parameters | bigquery-parameters | cas_noreq-parameters | clouddex-parameters | db2-parameters | dnfs-parameters | esp-parameters | fedsvr-parameters | gcs_noreq-parameters | hadoop-parameters | hana-parameters | impala-parameters | informix-parameters | jdbc-parameters | mongodb-parameters | mysql-parameters | odbc-parameters | oracle-parameters | path-parameters | postgres-parameters | redshift-parameters | s3-parameters | sapiq-parameters | sforce-parameters | singlestore_standard-parameters | snowflake-parameters | spark-parameters | spde-parameters | sqlserver-parameters | ss_noreq-parameters | teradata-parameters | vertica-parameters | yellowbrick-parameters}
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter (Appendix A: Common Parameters).
importOptions={fileType="ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters}
specifies the settings for reading a table from a data source.
| Alias | import |
|---|
For more information about specifying the importOptions parameter, see the common importOptions parameter (Appendix A: Common Parameters).
* name="table-name"
specifies the name of the filter table.
vars={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the variable names to use from the filter table.
The casinvardesc value can be one or more of the following:
format="string"
specifies the format to apply to the variable.
formattedLength=integer
specifies the length of the format field plus the length of 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 data from the filter table.
mca Action
Reduces the dimensionality of nominal variables by using a multiple correspondence analysis.
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 |
|---|---|---|
|
required parametertable |
— |
specifies the input table. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
required parametercasOut |
specifies the output data table that contains the values of the reduced variables for the training nominal data. | |
|
names |
lists the names of results tables to save as CAS tables on the server. | |
|
— |
specifies the output data table in which to save the dimensionality reduction model of the nominal variables for future scoring. |
Parameter Descriptions
cumVariance=double
specifies the minimum cumulative proportion of variance that must be explained by the reduced variables. You must specify either the cumVariance or dimensions parameter. If you specify both parameters, the cumVariance parameter is ignored.
| Alias | cumulativeVarianceProportion |
|---|---|
| Range | (0–1] |
dimensions=integer
specifies the number of reduced variables. You must specify either the dimensions or cumVariance parameter. If you specify both parameters, the cumVariance parameter is ignored.
| Aliases | dim |
|---|---|
| dimension | |
| dimens | |
| Minimum value | 1 |
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.
| Alias | frequency |
|---|
id=["variable-name-1" <, "variable-name-2", ...>]
specifies the variables to use as record identifiers and to transfer to the output table that you specify in the output parameter.
inputs=[{casinvardesc-1} <, {casinvardesc-2}, ...>]
specifies the variables to use in the analysis.
For more information about specifying the inputs parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
| Alias | input |
|---|
nominals=[{casinvardesc-1} <, {casinvardesc-2}, ...>]
specifies the nominal variables to use in the training.
For more information about specifying the nominals parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
| Alias | nominal |
|---|
nThreads=integer
specifies the number of threads to use per node. By default, or when you set the integer value to 0, the number of threads is equal to the number of CPUs on the machine.
| Alias | nThread |
|---|---|
| Range | 0–64 |
output={outputStatement}
specifies the output data table that contains the values of the reduced variables for the training nominal data.
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).
| Alias | DISPLAYOUT |
|---|
prefix="string"
specifies a prefix to apply to the names of the reduced variables.
| Aliases | reducedVarNamePrefix |
|---|---|
| reducedVarsNamePrefix | |
| Default | "rv" |
saveState={casouttable}
specifies the output data table in which to save the dimensionality reduction model of the nominal variables for future scoring.
For more information about specifying the saveState parameter, see the common casouttable (Form 1) parameter (Appendix A: Common Parameters).
| Alias | saveModel |
|---|
svdMethod="EXACT" | "RANDOM"
specifies the singular value decomposition (SVD) method to use in the training. If you set this parameter to "RANDOM", the randomized SVD method is used. This method is much faster than the exact SVD method, but it provides an approximate solution rather than an exact one. You should use it only when the total number of levels is so large that it takes a long time for the exact SVD method to run. The randomized SVD method is only compatible when you specify the dimensions parameter. If you specify the cumVariance parameter, the exact SVD method is used and the svdMethod and svdPower parameters are ignored.
| Default | EXACT |
|---|
svdPower=integer
specifies the parameter power (number of power iterations) for the randomized SVD method to use when the svdMethod parameter value is "RANDOM". A larger integer value results in greater accuracy but slower execution. The minimum integer value is 1. Although there is no maximum value, you should specify an integer value no greater than 10. The svdPower parameter is ignored if the exact SVD method is used.
| Aliases | randIter |
|---|---|
| randIters | |
| Default | 3 |
| Minimum value | 1 |
* table={castable}
specifies the 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 for the input 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. If you do not specify this parameter, then all variables from computedVarsProgram are automatically included.
| Alias | compVars |
|---|
The casinvardesc value can be one or more of the following:
"format":"string"
specifies the format to apply to the variable.
"formattedLength":integer
specifies the length of the format field plus the length of 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.
| Aliases | options |
|---|---|
| dataSource |
"groupByMode":"NOSORT" | "REDISTRIBUTE"
"importOptions":{"fileType":"ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters}
specifies the settings for reading a table from a data source.
| Alias | import_ |
|---|
For more information about specifying the importOptions parameter, see the common importOptions parameter (Appendix A: Common Parameters).
* "name":"table-name"
specifies the name of the input table.
"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.
The casinvardesc value can be one or more of the following:
"format":"string"
specifies the format to apply to the variable.
"formattedLength":integer
specifies the length of the format field plus the length of 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.
"whereTable":{groupbytable}
specifies an input table that contains rows to use as a WHERE filter. If the vars parameter is not specified, then all the variable names that are common to the input table and the filtering table are used to find matching rows. If the where parameter for the input table and this parameter are specified, then this filtering table is applied first.
The groupbytable value can be one or more of the following:
"casLib":"string"
specifies the caslib for the filter table. By default, the active caslib is used.
"dataSourceOptions":{adls_noreq-parameters | bigquery-parameters | cas_noreq-parameters | clouddex-parameters | db2-parameters | dnfs-parameters | esp-parameters | fedsvr-parameters | gcs_noreq-parameters | hadoop-parameters | hana-parameters | impala-parameters | informix-parameters | jdbc-parameters | mongodb-parameters | mysql-parameters | odbc-parameters | oracle-parameters | path-parameters | postgres-parameters | redshift-parameters | s3-parameters | sapiq-parameters | sforce-parameters | singlestore_standard-parameters | snowflake-parameters | spark-parameters | spde-parameters | sqlserver-parameters | ss_noreq-parameters | teradata-parameters | vertica-parameters | yellowbrick-parameters}
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter (Appendix A: Common Parameters).
"importOptions":{"fileType":"ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters}
specifies the settings for reading a table from a data source.
| Alias | import_ |
|---|
For more information about specifying the importOptions parameter, see the common importOptions parameter (Appendix A: Common Parameters).
* "name":"table-name"
specifies the name of the filter table.
"vars":[{casinvardesc-1} <, {casinvardesc-2}, ...>]
specifies the variable names to use from the filter table.
The casinvardesc value can be one or more of the following:
"format":"string"
specifies the format to apply to the variable.
"formattedLength":integer
specifies the length of the format field plus the length of 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 data from the filter table.
mca Action
Reduces the dimensionality of nominal variables by using a multiple correspondence analysis.
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 |
|---|---|---|
|
required parametertable |
— |
specifies the input table. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
required parametercasOut |
specifies the output data table that contains the values of the reduced variables for the training nominal data. | |
|
names |
lists the names of results tables to save as CAS tables on the server. | |
|
— |
specifies the output data table in which to save the dimensionality reduction model of the nominal variables for future scoring. |
Parameter Descriptions
cumVariance=double
specifies the minimum cumulative proportion of variance that must be explained by the reduced variables. You must specify either the cumVariance or dimensions parameter. If you specify both parameters, the cumVariance parameter is ignored.
| Alias | cumulativeVarianceProportion |
|---|---|
| Range | (0–1] |
dimensions=integer
specifies the number of reduced variables. You must specify either the dimensions or cumVariance parameter. If you specify both parameters, the cumVariance parameter is ignored.
| Aliases | dim |
|---|---|
| dimension | |
| dimens | |
| Minimum value | 1 |
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.
| Alias | frequency |
|---|
id=list("variable-name-1" <, "variable-name-2", ...>)
specifies the variables to use as record identifiers and to transfer to the output table that you specify in the output parameter.
inputs=list( list(casinvardesc-1) <, list(casinvardesc-2), ...>)
specifies the variables to use in the analysis.
For more information about specifying the inputs parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
| Alias | input |
|---|
nominals=list( list(casinvardesc-1) <, list(casinvardesc-2), ...>)
specifies the nominal variables to use in the training.
For more information about specifying the nominals parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).
| Alias | nominal |
|---|
nThreads=integer
specifies the number of threads to use per node. By default, or when you set the integer value to 0, the number of threads is equal to the number of CPUs on the machine.
| Alias | nThread |
|---|---|
| Range | 0–64 |
output=list(outputStatement)
specifies the output data table that contains the values of the reduced variables for the training nominal data.
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).
| Alias | DISPLAYOUT |
|---|
prefix="string"
specifies a prefix to apply to the names of the reduced variables.
| Aliases | reducedVarNamePrefix |
|---|---|
| reducedVarsNamePrefix | |
| Default | "rv" |
saveState=list(casouttable)
specifies the output data table in which to save the dimensionality reduction model of the nominal variables for future scoring.
For more information about specifying the saveState parameter, see the common casouttable (Form 1) parameter (Appendix A: Common Parameters).
| Alias | saveModel |
|---|
svdMethod="EXACT" | "RANDOM"
specifies the singular value decomposition (SVD) method to use in the training. If you set this parameter to "RANDOM", the randomized SVD method is used. This method is much faster than the exact SVD method, but it provides an approximate solution rather than an exact one. You should use it only when the total number of levels is so large that it takes a long time for the exact SVD method to run. The randomized SVD method is only compatible when you specify the dimensions parameter. If you specify the cumVariance parameter, the exact SVD method is used and the svdMethod and svdPower parameters are ignored.
| Default | EXACT |
|---|
svdPower=integer
specifies the parameter power (number of power iterations) for the randomized SVD method to use when the svdMethod parameter value is "RANDOM". A larger integer value results in greater accuracy but slower execution. The minimum integer value is 1. Although there is no maximum value, you should specify an integer value no greater than 10. The svdPower parameter is ignored if the exact SVD method is used.
| Aliases | randIter |
|---|---|
| randIters | |
| Default | 3 |
| Minimum value | 1 |
* table=list(castable)
specifies the 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 for the input 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. If you do not specify this parameter, then all variables from computedVarsProgram are automatically included.
| Alias | compVars |
|---|
The casinvardesc value can be one or more of the following:
format="string"
specifies the format to apply to the variable.
formattedLength=integer
specifies the length of the format field plus the length of 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.
| Aliases | options |
|---|---|
| dataSource |
groupByMode="NOSORT" | "REDISTRIBUTE"
importOptions=list(fileType="ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters)
specifies the settings for reading a table from a data source.
| Alias | import |
|---|
For more information about specifying the importOptions parameter, see the common importOptions parameter (Appendix A: Common Parameters).
* name="table-name"
specifies the name of the input table.
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.
The casinvardesc value can be one or more of the following:
format="string"
specifies the format to apply to the variable.
formattedLength=integer
specifies the length of the format field plus the length of 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.
whereTable=list(groupbytable)
specifies an input table that contains rows to use as a WHERE filter. If the vars parameter is not specified, then all the variable names that are common to the input table and the filtering table are used to find matching rows. If the where parameter for the input table and this parameter are specified, then this filtering table is applied first.
The groupbytable value can be one or more of the following:
casLib="string"
specifies the caslib for the filter table. By default, the active caslib is used.
dataSourceOptions=list(adls_noreq-parameters | bigquery-parameters | cas_noreq-parameters | clouddex-parameters | db2-parameters | dnfs-parameters | esp-parameters | fedsvr-parameters | gcs_noreq-parameters | hadoop-parameters | hana-parameters | impala-parameters | informix-parameters | jdbc-parameters | mongodb-parameters | mysql-parameters | odbc-parameters | oracle-parameters | path-parameters | postgres-parameters | redshift-parameters | s3-parameters | sapiq-parameters | sforce-parameters | singlestore_standard-parameters | snowflake-parameters | spark-parameters | spde-parameters | sqlserver-parameters | ss_noreq-parameters | teradata-parameters | vertica-parameters | yellowbrick-parameters)
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter (Appendix A: Common Parameters).
importOptions=list(fileType="ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters)
specifies the settings for reading a table from a data source.
| Alias | import |
|---|
For more information about specifying the importOptions parameter, see the common importOptions parameter (Appendix A: Common Parameters).
* name="table-name"
specifies the name of the filter table.
vars=list( list(casinvardesc-1) <, list(casinvardesc-2), ...>)
specifies the variable names to use from the filter table.
The casinvardesc value can be one or more of the following:
format="string"
specifies the format to apply to the variable.
formattedLength=integer
specifies the length of the format field plus the length of 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 data from the filter table.