Autotune Action Set: Syntax

Provides actions to tune machine learning algorithm hyperparameters for individual or multiple model types

tuneFactMac Action

Automatically adjusts factorization machine parameters to tune a model for minimum error.

CASL Syntax

autotune.tuneFactMac <result=results> <status=rc> /
scoreOptions={key-1=any-list-or-data-type-1 <, key-2=any-list-or-data-type-2, ...>},
required parameter trainOptions={key-1=any-list-or-data-type-1 <, key-2=any-list-or-data-type-2, ...>},
tunerOptions={
enableLocalSearch=TRUE | FALSE,
evaluationHistory=TRUE | FALSE,
historyTable={
appendLookupData=TRUE | FALSE
liveUpdate=TRUE | FALSE
required parameter table={
caslib="string"
compress=TRUE | FALSE
indexVars={"variable-name-1" <, "variable-name-2", ...>}
label="string"
lifetime=64-bit-integer
maxMemSize=64-bit-integer
name="table-name"
onDemand=TRUE | FALSE
promote=TRUE | FALSE
replace=TRUE | FALSE
replication=integer
threadBlockSize=64-bit-integer
timeStamp="string"
where={"string-1" <, "string-2", ...>}
}
},
logLevel=integer,
lookupTable={
selectInitialPoint=TRUE | FALSE
table={
caslib="string"
computedOnDemand=TRUE | FALSE
computedVars={{
format="string",
formattedLength=integer,
label="string",
required parameter name="variable-name",
nfd=integer,
nfl=integer
}, {...}}
dataSourceOptions={key-1=any-list-or-data-type-1 <, key-2=any-list-or-data-type-2, ...>}
importOptions={fileType="ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DELIMITED" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SOUND" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters}
required parameter name="table-name"
singlePass=TRUE | FALSE
vars={{
format="string",
formattedLength=integer,
label="string",
required parameter name="variable-name",
nfd=integer,
nfl=integer
}, {...}}
where="where-expression"
whereTable={
casLib="string"
dataSourceOptions={adls_noreq-parameters | bigquery-parameters | clouddex-parameters | db2-parameters | dnfs-parameters | esp-parameters | hadoop-parameters | hana-parameters | impala-parameters | jdbc-parameters | mongodb-parameters | mysql-parameters | odbc-parameters | oracle-parameters | path-parameters | postgres-parameters | redshift-parameters | s3-parameters | sforce-parameters | snowflake-parameters | spark-parameters | spde-parameters | sqlserver-parameters | teradata-parameters | vertica-parameters | yellowbrick-parameters}
importOptions={fileType="ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DELIMITED" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SOUND" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters}
required parameter name="table-name"
vars={{
format="string",
formattedLength=integer,
label="string",
required parameter name="variable-name",
nfd=integer,
nfl=integer
}, {...}}
where="where-expression"
}
}
},
maxEvals=integer,
maxIters=integer,
maxTime=double,
maxTrainTime=64-bit-integer,
nParallel=integer,
popSize=integer,
sampleSize=integer,
seed=integer,
shuffleGridPoints=TRUE | FALSE,
targetEvent="string",
userDefinedPartition=TRUE | FALSE,
},
tuningParameters={{
exclude=TRUE | FALSE,
initValue=integer | 64-bit-integer | double | TRUE | FALSE | "string",
lowerBound=double,
namePath="string",
upperBound=double,
valueList={any-list-or-data-type-1 <, any-list-or-data-type-2, ...>}
}, {...}},
useParameters="COMBINED" | "CUSTOM" | "STANDARD"
;
indicates a required parameter

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.

Parameters for Reading Input Tables

Parameter

Subparameter

Description

 tunerOptions

lookupTable (and nested parameter table)

specifies a list of parameters for adjusting how the tuner behaves.

Parameters for Creating Output Tables

Parameter

Subparameter

Description

 tunerOptions

historyTable (and nested parameter table)

specifies a list of parameters for adjusting how the tuner behaves.

Parameter Descriptions

scoreOptions={key-1=any-list-or-data-type-1 <, key-2=any-list-or-data-type-2, ...>}

specifies a list of parameters to be used by the score action in the aStore action set; for more information, see the parameters for that action.

* trainOptions={key-1=any-list-or-data-type-1 <, key-2=any-list-or-data-type-2, ...>}

specifies a list of parameters to be used by the factmac action in the factmac action set; for more information, see the parameters for that action.

tunerOptions={tunerOptions}

specifies a list of parameters for adjusting how the tuner behaves.

AliasoptMinerOpts

The tunerOptions value can be one or more of the following:

enableLocalSearch=TRUE | FALSE

when set to True, local search optimization is enabled for model tuning.

DefaultTRUE
evaluationHistory=TRUE | FALSE

when set to True, creates a table of every evaluation (every model configuration) and returns those tables to the client.

DefaultTRUE
historyTable={history_table}

specifies the CAS table that is created by the autotune action that contains all evaluation history data points.

The history_table value can be one or more of the following:

appendLookupData=TRUE | FALSE

when set to True, specifies that all unused lookup data points be appended to the table specified in the historyTable parameter.

DefaultFALSE
liveUpdate=TRUE | FALSE

when set to True, updates the table specified in the historyTable parameter after every evaluation. When the liveUpdate parameter is set to True, the table is promoted even if the promote parameter is not set to True, in order to allow other sessions to access the table.

DefaultFALSE
* table={casouttable}

For more information about specifying the table parameter, see the common casouttable parameter (Appendix A: Common Parameters).

logLevel=integer

specifies the level of log messages to be written: no logs (0), initialization and completion logs (1), setup and iteration results (2), or detailed evaluation results (3).

Default2
Range0–3
lookupTable={lookup_table}

specifies the CAS table used by the autotune action for evaluation lookup.

The lookup_table value can be one or more of the following:

selectInitialPoint=TRUE | FALSE

when set to True, selects the best point from the lookup table and uses it as the initial (default) point.

AliasinitPoint
DefaultFALSE
table={castable}

specifies the settings for an input table.

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.

AliascompOnDemand
DefaultFALSE
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.

AliascompVars

For more information about specifying the computedVars parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).

computedVarsProgram="string"

specifies an expression for each computed variable that you include in the computedVars parameter.

AliascompPgm
dataSourceOptions={key-1=any-list-or-data-type-1 <, key-2=any-list-or-data-type-2, ...>}

specifies data source options.

Aliasoptions, dataSource
groupByMode="NOSORT" | "REDISTRIBUTE"

specifies how to create groups.

DefaultNOSORT
NOSORT

group the data without sorting on each machine, and then groups the data again on the controller.

REDISTRIBUTE

transfers rows between nodes to guarantee ordering within groups. This method is slower.

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.

Aliasimport

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.

DefaultFALSE
vars={{casinvardesc-1} <, {casinvardesc-2}, ...>}

specifies the variables to use in the action.

For more information about specifying the vars parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).

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 | clouddex-parameters | db2-parameters | dnfs-parameters | esp-parameters | hadoop-parameters | hana-parameters | impala-parameters | jdbc-parameters | mongodb-parameters | mysql-parameters | odbc-parameters | oracle-parameters | path-parameters | postgres-parameters | redshift-parameters | s3-parameters | sforce-parameters | snowflake-parameters | spark-parameters | spde-parameters | sqlserver-parameters | teradata-parameters | vertica-parameters | yellowbrick-parameters}

specifies data source options.

Aliasoptions, 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.

Aliasimport

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.

For more information about specifying the vars parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).

where="where-expression"

specifies an expression for subsetting the data from the filter table.

maxBayesianModelSize=integer

specifies the maximum number of points in the kriging model. This parameter is ignored unless the value "BAYESIAN" is specified in the searchMethod parameter.

AliasmaxBayesianSize
Default500
Minimum value10
maxEvals=integer

specifies the maximum number of objective evaluations (model configurations) to be trained and scored.

AliasmaxEvaluations
Default0
Minimum value0
maxIters=integer

specifies the maximum number of iterations of optimization for model tuning. At each iteration, the number of evaluated models is less than or equal to the value of the popSize parameter.

AliasmaxIterations
Default5
Minimum value1
maxTime=double

specifies the maximum time allowed for tuning. The actual time might exceed this value by the amount of time required to train and score a model configuration.

Default36000
Minimum value1
maxTrainTime=64-bit-integer

specifies the maximum time allowed for a single model training. The model training is terminated if it exceeds this time, and the objective value is set to missing.

Minimum value0
nConvergenceIterations=integer

specifies the number of convergence iterations to use for terminating the tuning.

AliasnConvIters
Default4
Minimum value1
nCrossValFolds=integer

specifies the number of folds to use for cross validation to assess model fit error as the tuning objective.

AliasnFolds
Default5
Minimum value2
nParallel=integer

specifies the number of threads to be used by the optimizer for parallel evaluation of model configurations.

Default0
nSubsessionWorkers=integer

specifies the number of workers to be used by each subsession for parallel evaluation of model configurations.

AliasnSubWorkers
Default0
Minimum value0
objective="ASE" | "AUC" | "F05" | "F1" | "GAMMA" | "GINI" | "KS" | "MAE" | "MCE" | "MCLL" | "MISC" | "MSE" | "MSLE" | "RASE" | "RMAE" | "RMSLE" | "TAU"

specifies the objective metric to use during the tuning.

ASE

specifies the average square error as the objective function.

AUC

specifies area under the curve as the objective function (nominal targets only).

F05

specifies the F0.5 coefficient as the objective function (nominal targets only).

F1

specifies the F1 coefficient as the objective function (nominal targets only).

GAMMA

specifies the gamma coefficient as the objective function (nominal targets only).

GINI

specifies the Gini coefficient as the objective function (nominal targets only).

KS

specifies the Kolmogorov-Smirnov coefficient as the objective function (nominal targets only).

MAE

specifies the mean absolute error as the objective function (interval targets only).

MCE

specifies the misclassification rate as the objective function (nominal targets only).

MCLL

specifies the multiclass log loss as the objective function (nominal targets only).

MISC

specifies the misclassification error percentage as the objective function (nominal targets only).

MSE

specifies the mean square error as the objective function (interval targets only).

MSLE

specifies the mean square logarithmic error as the objective function (interval targets only).

RASE

specifies the root average square error as the objective function.

RMAE

specifies the root mean absolute error as the objective function (interval targets only).

RMSLE

specifies the root mean square logarithmic error as the objective function (interval targets only).

TAU

specifies the tau coefficient as the objective function (nominal targets only).

popSize=integer

specifies the maximum number of model configurations to evaluate at each iteration.

AliaspopulationSize
Default10
Minimum value2
sampleSize=integer

specifies the number of model configurations to evaluate when the value of the searchMethod parameter is "LHS" or "RANDOM".

Default50
Minimum value2
searchMethod="BAYESIAN" | "GA" | "GRID" | "LHS" | "RANDOM"

specifies the search method to use during tuning.

DefaultGA
BAYESIAN

uses the Bayesian search method.

GA

uses the genetic algorithm search method.

GRID

uses the grid search method.

LHS

uses the Latin hypercube sample search method.

RANDOM

uses the random search method.

secondObjective="NONE" | "SCORINGTIME" | "TRAININGTIME"

specifies the type of the second objective to use for tuning.

DefaultNONE
NONE

specifies no second objective to be used for tuning.

SCORINGTIME

specifies model scoring time as the second objective for tuning.

TRAININGTIME

specifies model training time as the second objective for tuning.

seed=integer

specifies the seed to use for selecting training data and validation data for a single validation partition or fold number for each observation for cross validation.

Default0
shuffleGridPoints=TRUE | FALSE

when set to True, shuffles the points that are generated by the grid search method before execution.

DefaultTRUE
targetEvent="string"

specifies the name of the nominal target event to use for tuning.

trainPartitionFraction=double

specifies the size of a single data partition to use for model training during tuning.

AliastrainFraction
Range0.01–0.99
userDefinedPartition=TRUE | FALSE

when set to True, includes a user-defined partition for training and scoring.

DefaultFALSE
validationPartitionFraction=double

specifies the size of a single validation partition to use in order to assess model fit error as the tuning objective.

AliasvalidateFraction
Default0.3
Range0.01–0.99

tuningParameters={{autotuneTuningParmDefinition-1} <, {autotuneTuningParmDefinition-2}, ...>}

specifies a list of custom tuning parameters and their definitions.

The autotuneTuningParmDefinition value can be one or more of the following:

exclude=TRUE | FALSE

when set to True, excludes a tuning parameter from the tuning process.

DefaultFALSE
initValue=integer | 64-bit-integer | double | TRUE | FALSE | "string"

specifies the initial (default) value of a tuning parameter.

lowerBound=double

specifies the lower bound of the range for a tuning parameter. This parameter can be used only for numeric tuning parameters, and is ignored if a value list is specified for the tuning parameter.

AliasLB
namePath="string"

specifies the name path of a tuning parameter. For a nested action parameter, this parameter specifies a dot-separated path that includes all its parent parameter names. For a top-level action parameter, this parameter is simply the name of the parameter.

Aliasname
upperBound=double

specifies the upper bound of the range for a tuning parameter. This parameter can be used only for numeric tuning parameters, and is ignored if a value list is specified for the tuning parameter.

AliasUB
valueList={any-list-or-data-type-1 <, any-list-or-data-type-2, ...>}

specifies the list of values to try for a tuning parameter. If this parameter is specified, the lower bound and upper bound values of the tuning parameter are ignored.

useParameters="COMBINED" | "CUSTOM" | "STANDARD"

specifies whether to use only standard tuning parameters, only custom tuning parameters, or a combination of both.

DefaultCOMBINED

tuneFactMac Action

Automatically adjusts factorization machine parameters to tune a model for minimum error.

Lua Syntax

results, info = s:autotune_tuneFactMac{
scoreOptions={key-1=any-list-or-data-type-1 <, key-2=any-list-or-data-type-2, ...>},
required parameter trainOptions={key-1=any-list-or-data-type-1 <, key-2=any-list-or-data-type-2, ...>},
tunerOptions={
enableLocalSearch=true | false,
evaluationHistory=true | false,
historyTable={
appendLookupData=true | false
liveUpdate=true | false
required parameter table={
caslib="string"
compress=true | false
indexVars={"variable-name-1" <, "variable-name-2", ...>}
label="string"
lifetime=64-bit-integer
maxMemSize=64-bit-integer
name="table-name"
onDemand=true | false
promote=true | false
replace=true | false
replication=integer
threadBlockSize=64-bit-integer
timeStamp="string"
where={"string-1" <, "string-2", ...>}
}
},
logLevel=integer,
lookupTable={
selectInitialPoint=true | false
table={
caslib="string"
computedOnDemand=true | false
computedVars={{
format="string",
formattedLength=integer,
label="string",
required parameter name="variable-name",
nfd=integer,
nfl=integer
}, {...}}
dataSourceOptions={key-1=any-list-or-data-type-1 <, key-2=any-list-or-data-type-2, ...>}
importOptions={fileType="ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DELIMITED" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SOUND" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters}
required parameter name="table-name"
singlePass=true | false
vars={{
format="string",
formattedLength=integer,
label="string",
required parameter name="variable-name",
nfd=integer,
nfl=integer
}, {...}}
where="where-expression"
whereTable={
casLib="string"
dataSourceOptions={adls_noreq-parameters | bigquery-parameters | clouddex-parameters | db2-parameters | dnfs-parameters | esp-parameters | hadoop-parameters | hana-parameters | impala-parameters | jdbc-parameters | mongodb-parameters | mysql-parameters | odbc-parameters | oracle-parameters | path-parameters | postgres-parameters | redshift-parameters | s3-parameters | sforce-parameters | snowflake-parameters | spark-parameters | spde-parameters | sqlserver-parameters | teradata-parameters | vertica-parameters | yellowbrick-parameters}
importOptions={fileType="ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DELIMITED" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SOUND" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters}
required parameter name="table-name"
vars={{
format="string",
formattedLength=integer,
label="string",
required parameter name="variable-name",
nfd=integer,
nfl=integer
}, {...}}
where="where-expression"
}
}
},
maxEvals=integer,
maxIters=integer,
maxTime=double,
maxTrainTime=64-bit-integer,
nParallel=integer,
popSize=integer,
sampleSize=integer,
seed=integer,
shuffleGridPoints=true | false,
targetEvent="string",
userDefinedPartition=true | false,
},
tuningParameters={{
exclude=true | false,
initValue=integer | 64-bit-integer | double | true | false | "string",
lowerBound=double,
namePath="string",
upperBound=double,
valueList={any-list-or-data-type-1 <, any-list-or-data-type-2, ...>}
}, {...}},
useParameters="COMBINED" | "CUSTOM" | "STANDARD"
}
indicates a required parameter

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.

Parameters for Reading Input Tables

Parameter

Subparameter

Description

 tunerOptions

lookupTable (and nested parameter table)

specifies a list of parameters for adjusting how the tuner behaves.

Parameters for Creating Output Tables

Parameter

Subparameter

Description

 tunerOptions

historyTable (and nested parameter table)

specifies a list of parameters for adjusting how the tuner behaves.

Parameter Descriptions

scoreOptions={key-1=any-list-or-data-type-1 <, key-2=any-list-or-data-type-2, ...>}

specifies a list of parameters to be used by the score action in the aStore action set; for more information, see the parameters for that action.

* trainOptions={key-1=any-list-or-data-type-1 <, key-2=any-list-or-data-type-2, ...>}

specifies a list of parameters to be used by the factmac action in the factmac action set; for more information, see the parameters for that action.

tunerOptions={tunerOptions}

specifies a list of parameters for adjusting how the tuner behaves.

AliasoptMinerOpts

The tunerOptions value can be one or more of the following:

enableLocalSearch=true | false

when set to True, local search optimization is enabled for model tuning.

Defaulttrue
evaluationHistory=true | false

when set to True, creates a table of every evaluation (every model configuration) and returns those tables to the client.

Defaulttrue
historyTable={history_table}

specifies the CAS table that is created by the autotune action that contains all evaluation history data points.

The history_table value can be one or more of the following:

appendLookupData=true | false

when set to True, specifies that all unused lookup data points be appended to the table specified in the historyTable parameter.

Defaultfalse
liveUpdate=true | false

when set to True, updates the table specified in the historyTable parameter after every evaluation. When the liveUpdate parameter is set to True, the table is promoted even if the promote parameter is not set to True, in order to allow other sessions to access the table.

Defaultfalse
* table={casouttable}

For more information about specifying the table parameter, see the common casouttable parameter (Appendix A: Common Parameters).

logLevel=integer

specifies the level of log messages to be written: no logs (0), initialization and completion logs (1), setup and iteration results (2), or detailed evaluation results (3).

Default2
Range0–3
lookupTable={lookup_table}

specifies the CAS table used by the autotune action for evaluation lookup.

The lookup_table value can be one or more of the following:

selectInitialPoint=true | false

when set to True, selects the best point from the lookup table and uses it as the initial (default) point.

AliasinitPoint
Defaultfalse
table={castable}

specifies the settings for an input table.

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.

AliascompOnDemand
Defaultfalse
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.

AliascompVars

For more information about specifying the computedVars parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).

computedVarsProgram="string"

specifies an expression for each computed variable that you include in the computedVars parameter.

AliascompPgm
dataSourceOptions={key-1=any-list-or-data-type-1 <, key-2=any-list-or-data-type-2, ...>}

specifies data source options.

Aliasoptions, dataSource
groupByMode="NOSORT" | "REDISTRIBUTE"

specifies how to create groups.

DefaultNOSORT
NOSORT

group the data without sorting on each machine, and then groups the data again on the controller.

REDISTRIBUTE

transfers rows between nodes to guarantee ordering within groups. This method is slower.

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.

Aliasimport

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.

Defaultfalse
vars={{casinvardesc-1} <, {casinvardesc-2}, ...>}

specifies the variables to use in the action.

For more information about specifying the vars parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).

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 | clouddex-parameters | db2-parameters | dnfs-parameters | esp-parameters | hadoop-parameters | hana-parameters | impala-parameters | jdbc-parameters | mongodb-parameters | mysql-parameters | odbc-parameters | oracle-parameters | path-parameters | postgres-parameters | redshift-parameters | s3-parameters | sforce-parameters | snowflake-parameters | spark-parameters | spde-parameters | sqlserver-parameters | teradata-parameters | vertica-parameters | yellowbrick-parameters}

specifies data source options.

Aliasoptions, 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.

Aliasimport

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.

For more information about specifying the vars parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).

where="where-expression"

specifies an expression for subsetting the data from the filter table.

maxBayesianModelSize=integer

specifies the maximum number of points in the kriging model. This parameter is ignored unless the value "BAYESIAN" is specified in the searchMethod parameter.

AliasmaxBayesianSize
Default500
Minimum value10
maxEvals=integer

specifies the maximum number of objective evaluations (model configurations) to be trained and scored.

AliasmaxEvaluations
Default0
Minimum value0
maxIters=integer

specifies the maximum number of iterations of optimization for model tuning. At each iteration, the number of evaluated models is less than or equal to the value of the popSize parameter.

AliasmaxIterations
Default5
Minimum value1
maxTime=double

specifies the maximum time allowed for tuning. The actual time might exceed this value by the amount of time required to train and score a model configuration.

Default36000
Minimum value1
maxTrainTime=64-bit-integer

specifies the maximum time allowed for a single model training. The model training is terminated if it exceeds this time, and the objective value is set to missing.

Minimum value0
nConvergenceIterations=integer

specifies the number of convergence iterations to use for terminating the tuning.

AliasnConvIters
Default4
Minimum value1
nCrossValFolds=integer

specifies the number of folds to use for cross validation to assess model fit error as the tuning objective.

AliasnFolds
Default5
Minimum value2
nParallel=integer

specifies the number of threads to be used by the optimizer for parallel evaluation of model configurations.

Default0
nSubsessionWorkers=integer

specifies the number of workers to be used by each subsession for parallel evaluation of model configurations.

AliasnSubWorkers
Default0
Minimum value0
objective="ASE" | "AUC" | "F05" | "F1" | "GAMMA" | "GINI" | "KS" | "MAE" | "MCE" | "MCLL" | "MISC" | "MSE" | "MSLE" | "RASE" | "RMAE" | "RMSLE" | "TAU"

specifies the objective metric to use during the tuning.

ASE

specifies the average square error as the objective function.

AUC

specifies area under the curve as the objective function (nominal targets only).

F05

specifies the F0.5 coefficient as the objective function (nominal targets only).

F1

specifies the F1 coefficient as the objective function (nominal targets only).

GAMMA

specifies the gamma coefficient as the objective function (nominal targets only).

GINI

specifies the Gini coefficient as the objective function (nominal targets only).

KS

specifies the Kolmogorov-Smirnov coefficient as the objective function (nominal targets only).

MAE

specifies the mean absolute error as the objective function (interval targets only).

MCE

specifies the misclassification rate as the objective function (nominal targets only).

MCLL

specifies the multiclass log loss as the objective function (nominal targets only).

MISC

specifies the misclassification error percentage as the objective function (nominal targets only).

MSE

specifies the mean square error as the objective function (interval targets only).

MSLE

specifies the mean square logarithmic error as the objective function (interval targets only).

RASE

specifies the root average square error as the objective function.

RMAE

specifies the root mean absolute error as the objective function (interval targets only).

RMSLE

specifies the root mean square logarithmic error as the objective function (interval targets only).

TAU

specifies the tau coefficient as the objective function (nominal targets only).

popSize=integer

specifies the maximum number of model configurations to evaluate at each iteration.

AliaspopulationSize
Default10
Minimum value2
sampleSize=integer

specifies the number of model configurations to evaluate when the value of the searchMethod parameter is "LHS" or "RANDOM".

Default50
Minimum value2
searchMethod="BAYESIAN" | "GA" | "GRID" | "LHS" | "RANDOM"

specifies the search method to use during tuning.

DefaultGA
BAYESIAN

uses the Bayesian search method.

GA

uses the genetic algorithm search method.

GRID

uses the grid search method.

LHS

uses the Latin hypercube sample search method.

RANDOM

uses the random search method.

secondObjective="NONE" | "SCORINGTIME" | "TRAININGTIME"

specifies the type of the second objective to use for tuning.

DefaultNONE
NONE

specifies no second objective to be used for tuning.

SCORINGTIME

specifies model scoring time as the second objective for tuning.

TRAININGTIME

specifies model training time as the second objective for tuning.

seed=integer

specifies the seed to use for selecting training data and validation data for a single validation partition or fold number for each observation for cross validation.

Default0
shuffleGridPoints=true | false

when set to True, shuffles the points that are generated by the grid search method before execution.

Defaulttrue
targetEvent="string"

specifies the name of the nominal target event to use for tuning.

trainPartitionFraction=double

specifies the size of a single data partition to use for model training during tuning.

AliastrainFraction
Range0.01–0.99
userDefinedPartition=true | false

when set to True, includes a user-defined partition for training and scoring.

Defaultfalse
validationPartitionFraction=double

specifies the size of a single validation partition to use in order to assess model fit error as the tuning objective.

AliasvalidateFraction
Default0.3
Range0.01–0.99

tuningParameters={{autotuneTuningParmDefinition-1} <, {autotuneTuningParmDefinition-2}, ...>}

specifies a list of custom tuning parameters and their definitions.

The autotuneTuningParmDefinition value can be one or more of the following:

exclude=true | false

when set to True, excludes a tuning parameter from the tuning process.

Defaultfalse
initValue=integer | 64-bit-integer | double | true | false | "string"

specifies the initial (default) value of a tuning parameter.

lowerBound=double

specifies the lower bound of the range for a tuning parameter. This parameter can be used only for numeric tuning parameters, and is ignored if a value list is specified for the tuning parameter.

AliasLB
namePath="string"

specifies the name path of a tuning parameter. For a nested action parameter, this parameter specifies a dot-separated path that includes all its parent parameter names. For a top-level action parameter, this parameter is simply the name of the parameter.

Aliasname
upperBound=double

specifies the upper bound of the range for a tuning parameter. This parameter can be used only for numeric tuning parameters, and is ignored if a value list is specified for the tuning parameter.

AliasUB
valueList={any-list-or-data-type-1 <, any-list-or-data-type-2, ...>}

specifies the list of values to try for a tuning parameter. If this parameter is specified, the lower bound and upper bound values of the tuning parameter are ignored.

useParameters="COMBINED" | "CUSTOM" | "STANDARD"

specifies whether to use only standard tuning parameters, only custom tuning parameters, or a combination of both.

DefaultCOMBINED

tuneFactMac Action

Automatically adjusts factorization machine parameters to tune a model for minimum error.

Python Syntax

results= s.autotune.tuneFactMac(
scoreOptions={"key-1":{any-list-or-data-type-1} <, "key-2":{any-list-or-data-type-2}, ...>},
required parameter trainOptions={"key-1":{any-list-or-data-type-1} <, "key-2":{any-list-or-data-type-2}, ...>},
tunerOptions={
"enableLocalSearch":True | False,
"evaluationHistory":True | False,
"historyTable":{
"appendLookupData":True | False
"liveUpdate":True | False
required parameter "table":{
"caslib":"string"
"compress":True | False
"indexVars":["variable-name-1" <, "variable-name-2", ...>]
"label":"string"
"lifetime":64-bit-integer
"maxMemSize":64-bit-integer
"name":"table-name"
"onDemand":True | False
"promote":True | False
"replace":True | False
"replication":integer
"threadBlockSize":64-bit-integer
"timeStamp":"string"
"where":["string-1" <, "string-2", ...>]
}
},
"logLevel":integer,
"lookupTable":{
"selectInitialPoint":True | False
"table":{
"caslib":"string"
"computedOnDemand"=True | False
"computedVars"=[{
"format":"string",
"formattedLength":integer,
"label":"string",
required parameter "name":"variable-name",
"nfd":integer,
"nfl":integer
}<, {...}>]
"dataSourceOptions":{"key-1":{any-list-or-data-type-1} <, "key-2":{any-list-or-data-type-2}, ...>}
"importOptions":{"fileType":"ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DELIMITED" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SOUND" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters}
required parameter "name":"table-name"
"singlePass":True | False
"vars":[{
"format":"string",
"formattedLength":integer,
"label":"string",
required parameter "name":"variable-name",
"nfd":integer,
"nfl":integer
}<, {...}>]
"where":"where-expression"
"whereTable":{
"casLib":"string"
"dataSourceOptions":{adls_noreq-parameters | bigquery-parameters | clouddex-parameters | db2-parameters | dnfs-parameters | esp-parameters | hadoop-parameters | hana-parameters | impala-parameters | jdbc-parameters | mongodb-parameters | mysql-parameters | odbc-parameters | oracle-parameters | path-parameters | postgres-parameters | redshift-parameters | s3-parameters | sforce-parameters | snowflake-parameters | spark-parameters | spde-parameters | sqlserver-parameters | teradata-parameters | vertica-parameters | yellowbrick-parameters}
"importOptions":{"fileType":"ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DELIMITED" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SOUND" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters}
required parameter "name":"table-name"
"vars":[{
"format":"string",
"formattedLength":integer,
"label":"string",
required parameter "name":"variable-name",
"nfd":integer,
"nfl":integer
}<, {...}>]
"where":"where-expression"
}
}
},
"maxEvals":integer,
"maxIters":integer,
"maxTime":double,
"maxTrainTime":64-bit-integer,
"nCrossValFolds":integer,
"nParallel":integer,
"popSize":integer,
"sampleSize":integer,
"seed":integer,
"shuffleGridPoints":True | False,
"targetEvent":"string",
"userDefinedPartition":True | False,
},
tuningParameters=[{
"exclude":True | False,
"initValue":integer | 64-bit-integer | double | True | False | "string",
"lowerBound":double,
"namePath":"string",
"upperBound":double,
"valueList":{any-list-or-data-type-1 <, any-list-or-data-type-2, ...>}
}<, {...}>],
useParameters="COMBINED" | "CUSTOM" | "STANDARD"
)
indicates a required parameter

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.

Parameters for Reading Input Tables

Parameter

Subparameter

Description

 tunerOptions

lookupTable (and nested parameter table)

specifies a list of parameters for adjusting how the tuner behaves.

Parameters for Creating Output Tables

Parameter

Subparameter

Description

 tunerOptions

historyTable (and nested parameter table)

specifies a list of parameters for adjusting how the tuner behaves.

Parameter Descriptions

scoreOptions={"key-1":{any-list-or-data-type-1} <, "key-2":{any-list-or-data-type-2}, ...>}

specifies a list of parameters to be used by the score action in the aStore action set; for more information, see the parameters for that action.

* trainOptions={"key-1":{any-list-or-data-type-1} <, "key-2":{any-list-or-data-type-2}, ...>}

specifies a list of parameters to be used by the factmac action in the factmac action set; for more information, see the parameters for that action.

tunerOptions={tunerOptions}

specifies a list of parameters for adjusting how the tuner behaves.

AliasoptMinerOpts

The tunerOptions value can be one or more of the following:

"enableLocalSearch":True | False

when set to True, local search optimization is enabled for model tuning.

DefaultTrue
"evaluationHistory":True | False

when set to True, creates a table of every evaluation (every model configuration) and returns those tables to the client.

DefaultTrue
"historyTable":{history_table}

specifies the CAS table that is created by the autotune action that contains all evaluation history data points.

The history_table value can be one or more of the following:

"appendLookupData":True | False

when set to True, specifies that all unused lookup data points be appended to the table specified in the historyTable parameter.

DefaultFalse
"liveUpdate":True | False

when set to True, updates the table specified in the historyTable parameter after every evaluation. When the liveUpdate parameter is set to True, the table is promoted even if the promote parameter is not set to True, in order to allow other sessions to access the table.

DefaultFalse
* "table":{casouttable}

For more information about specifying the table parameter, see the common casouttable parameter (Appendix A: Common Parameters).

"logLevel":integer

specifies the level of log messages to be written: no logs (0), initialization and completion logs (1), setup and iteration results (2), or detailed evaluation results (3).

Default2
Range0–3
"lookupTable":{lookup_table}

specifies the CAS table used by the autotune action for evaluation lookup.

The lookup_table value can be one or more of the following:

"selectInitialPoint":True | False

when set to True, selects the best point from the lookup table and uses it as the initial (default) point.

AliasinitPoint
DefaultFalse
"table":{castable}

specifies the settings for an input table.

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.

AliascompOnDemand
DefaultFalse
"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.

AliascompVars

For more information about specifying the computedVars parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).

"computedVarsProgram":"string"

specifies an expression for each computed variable that you include in the computedVars parameter.

AliascompPgm
"dataSourceOptions":{"key-1":{any-list-or-data-type-1} <, "key-2":{any-list-or-data-type-2}, ...>}

specifies data source options.

Aliasoptions, dataSource
"groupByMode":"NOSORT" | "REDISTRIBUTE"

specifies how to create groups.

DefaultNOSORT
NOSORT

group the data without sorting on each machine, and then groups the data again on the controller.

REDISTRIBUTE

transfers rows between nodes to guarantee ordering within groups. This method is slower.

"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.

Aliasimport_

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.

DefaultFalse
"vars":[{casinvardesc-1} <, {casinvardesc-2}, ...>]

specifies the variables to use in the action.

For more information about specifying the vars parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).

"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 | clouddex-parameters | db2-parameters | dnfs-parameters | esp-parameters | hadoop-parameters | hana-parameters | impala-parameters | jdbc-parameters | mongodb-parameters | mysql-parameters | odbc-parameters | oracle-parameters | path-parameters | postgres-parameters | redshift-parameters | s3-parameters | sforce-parameters | snowflake-parameters | spark-parameters | spde-parameters | sqlserver-parameters | teradata-parameters | vertica-parameters | yellowbrick-parameters}

specifies data source options.

Aliasoptions, 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.

Aliasimport_

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.

For more information about specifying the vars parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).

"where":"where-expression"

specifies an expression for subsetting the data from the filter table.

"maxBayesianModelSize":integer

specifies the maximum number of points in the kriging model. This parameter is ignored unless the value "BAYESIAN" is specified in the searchMethod parameter.

AliasmaxBayesianSize
Default500
Minimum value10
"maxEvals":integer

specifies the maximum number of objective evaluations (model configurations) to be trained and scored.

AliasmaxEvaluations
Default0
Minimum value0
"maxIters":integer

specifies the maximum number of iterations of optimization for model tuning. At each iteration, the number of evaluated models is less than or equal to the value of the popSize parameter.

AliasmaxIterations
Default5
Minimum value1
"maxTime":double

specifies the maximum time allowed for tuning. The actual time might exceed this value by the amount of time required to train and score a model configuration.

Default36000
Minimum value1
"maxTrainTime":64-bit-integer

specifies the maximum time allowed for a single model training. The model training is terminated if it exceeds this time, and the objective value is set to missing.

Minimum value0
"nConvergenceIterations":integer

specifies the number of convergence iterations to use for terminating the tuning.

AliasnConvIters
Default4
Minimum value1
"nCrossValFolds":integer

specifies the number of folds to use for cross validation to assess model fit error as the tuning objective.

AliasnFolds
Default5
Minimum value2
"nParallel":integer

specifies the number of threads to be used by the optimizer for parallel evaluation of model configurations.

Default0
"nSubsessionWorkers":integer

specifies the number of workers to be used by each subsession for parallel evaluation of model configurations.

AliasnSubWorkers
Default0
Minimum value0
"objective":"ASE" | "AUC" | "F05" | "F1" | "GAMMA" | "GINI" | "KS" | "MAE" | "MCE" | "MCLL" | "MISC" | "MSE" | "MSLE" | "RASE" | "RMAE" | "RMSLE" | "TAU"

specifies the objective metric to use during the tuning.

ASE

specifies the average square error as the objective function.

AUC

specifies area under the curve as the objective function (nominal targets only).

F05

specifies the F0.5 coefficient as the objective function (nominal targets only).

F1

specifies the F1 coefficient as the objective function (nominal targets only).

GAMMA

specifies the gamma coefficient as the objective function (nominal targets only).

GINI

specifies the Gini coefficient as the objective function (nominal targets only).

KS

specifies the Kolmogorov-Smirnov coefficient as the objective function (nominal targets only).

MAE

specifies the mean absolute error as the objective function (interval targets only).

MCE

specifies the misclassification rate as the objective function (nominal targets only).

MCLL

specifies the multiclass log loss as the objective function (nominal targets only).

MISC

specifies the misclassification error percentage as the objective function (nominal targets only).

MSE

specifies the mean square error as the objective function (interval targets only).

MSLE

specifies the mean square logarithmic error as the objective function (interval targets only).

RASE

specifies the root average square error as the objective function.

RMAE

specifies the root mean absolute error as the objective function (interval targets only).

RMSLE

specifies the root mean square logarithmic error as the objective function (interval targets only).

TAU

specifies the tau coefficient as the objective function (nominal targets only).

"popSize":integer

specifies the maximum number of model configurations to evaluate at each iteration.

AliaspopulationSize
Default10
Minimum value2
"sampleSize":integer

specifies the number of model configurations to evaluate when the value of the searchMethod parameter is "LHS" or "RANDOM".

Default50
Minimum value2
"searchMethod":"BAYESIAN" | "GA" | "GRID" | "LHS" | "RANDOM"

specifies the search method to use during tuning.

DefaultGA
BAYESIAN

uses the Bayesian search method.

GA

uses the genetic algorithm search method.

GRID

uses the grid search method.

LHS

uses the Latin hypercube sample search method.

RANDOM

uses the random search method.

"secondObjective":"NONE" | "SCORINGTIME" | "TRAININGTIME"

specifies the type of the second objective to use for tuning.

DefaultNONE
NONE

specifies no second objective to be used for tuning.

SCORINGTIME

specifies model scoring time as the second objective for tuning.

TRAININGTIME

specifies model training time as the second objective for tuning.

"seed":integer

specifies the seed to use for selecting training data and validation data for a single validation partition or fold number for each observation for cross validation.

Default0
"shuffleGridPoints":True | False

when set to True, shuffles the points that are generated by the grid search method before execution.

DefaultTrue
"targetEvent":"string"

specifies the name of the nominal target event to use for tuning.

"trainPartitionFraction":double

specifies the size of a single data partition to use for model training during tuning.

AliastrainFraction
Range0.01–0.99
"userDefinedPartition":True | False

when set to True, includes a user-defined partition for training and scoring.

DefaultFalse
"validationPartitionFraction":double

specifies the size of a single validation partition to use in order to assess model fit error as the tuning objective.

AliasvalidateFraction
Default0.3
Range0.01–0.99

tuningParameters=[{autotuneTuningParmDefinition-1} <, {autotuneTuningParmDefinition-2}, ...>]

specifies a list of custom tuning parameters and their definitions.

The autotuneTuningParmDefinition value can be one or more of the following:

"exclude":True | False

when set to True, excludes a tuning parameter from the tuning process.

DefaultFalse
"initValue":integer | 64-bit-integer | double | True | False | "string"

specifies the initial (default) value of a tuning parameter.

"lowerBound":double

specifies the lower bound of the range for a tuning parameter. This parameter can be used only for numeric tuning parameters, and is ignored if a value list is specified for the tuning parameter.

AliasLB
"namePath":"string"

specifies the name path of a tuning parameter. For a nested action parameter, this parameter specifies a dot-separated path that includes all its parent parameter names. For a top-level action parameter, this parameter is simply the name of the parameter.

Aliasname
"upperBound":double

specifies the upper bound of the range for a tuning parameter. This parameter can be used only for numeric tuning parameters, and is ignored if a value list is specified for the tuning parameter.

AliasUB
"valueList":{any-list-or-data-type-1 <, any-list-or-data-type-2, ...>}

specifies the list of values to try for a tuning parameter. If this parameter is specified, the lower bound and upper bound values of the tuning parameter are ignored.

useParameters="COMBINED" | "CUSTOM" | "STANDARD"

specifies whether to use only standard tuning parameters, only custom tuning parameters, or a combination of both.

DefaultCOMBINED

tuneFactMac Action

Automatically adjusts factorization machine parameters to tune a model for minimum error.

R Syntax

results <– cas.autotune.tuneFactMac(s,
scoreOptions=list(key-1=list(any-list-or-data-type-1) <, key-2=list(any-list-or-data-type-2), ...>),
required parameter trainOptions=list(key-1=list(any-list-or-data-type-1) <, key-2=list(any-list-or-data-type-2), ...>),
tunerOptions=list(
enableLocalSearch=TRUE | FALSE,
evaluationHistory=TRUE | FALSE,
historyTable=list(
appendLookupData=TRUE | FALSE
liveUpdate=TRUE | FALSE
required parameter table=list(
caslib="string"
compress=TRUE | FALSE
indexVars=list("variable-name-1" <, "variable-name-2", ...>)
label="string"
lifetime=64-bit-integer
maxMemSize=64-bit-integer
name="table-name"
onDemand=TRUE | FALSE
promote=TRUE | FALSE
replace=TRUE | FALSE
replication=integer
threadBlockSize=64-bit-integer
timeStamp="string"
where=list("string-1" <, "string-2", ...>)
)
),
logLevel=integer,
lookupTable=list(
selectInitialPoint=TRUE | FALSE
table=list(
caslib="string"
computedOnDemand=TRUE | FALSE
computedVars=list( list(
format="string",
formattedLength=integer,
label="string",
required parameter name="variable-name",
nfd=integer,
nfl=integer
) <, list(...)>)
dataSourceOptions=list(key-1=list(any-list-or-data-type-1) <, key-2=list(any-list-or-data-type-2), ...>)
importOptions=list(fileType="ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DELIMITED" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SOUND" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters)
required parameter name="table-name"
singlePass=TRUE | FALSE
vars=list( list(
format="string",
formattedLength=integer,
label="string",
required parameter name="variable-name",
nfd=integer,
nfl=integer
) <, list(...)>)
where="where-expression"
whereTable=list(
casLib="string"
dataSourceOptions=list(adls_noreq-parameters | bigquery-parameters | clouddex-parameters | db2-parameters | dnfs-parameters | esp-parameters | hadoop-parameters | hana-parameters | impala-parameters | jdbc-parameters | mongodb-parameters | mysql-parameters | odbc-parameters | oracle-parameters | path-parameters | postgres-parameters | redshift-parameters | s3-parameters | sforce-parameters | snowflake-parameters | spark-parameters | spde-parameters | sqlserver-parameters | teradata-parameters | vertica-parameters | yellowbrick-parameterslist)
importOptions=list(fileType="ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DELIMITED" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SOUND" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters)
required parameter name="table-name"
vars=list( list(
format="string",
formattedLength=integer,
label="string",
required parameter name="variable-name",
nfd=integer,
nfl=integer
) <, list(...)>)
where="where-expression"
)
)
),
maxEvals=integer,
maxIters=integer,
maxTime=double,
maxTrainTime=64-bit-integer,
nParallel=integer,
popSize=integer,
sampleSize=integer,
seed=integer,
shuffleGridPoints=TRUE | FALSE,
targetEvent="string",
userDefinedPartition=TRUE | FALSE,
),
tuningParameters=list( list(
exclude=TRUE | FALSE,
initValue=integer | 64-bit-integer | double | TRUE | FALSE | "string",
lowerBound=double,
namePath="string",
upperBound=double,
valueList=list(any-list-or-data-type-1 <, any-list-or-data-type-2, ...>)
) <, list(...)>),
useParameters="COMBINED" | "CUSTOM" | "STANDARD"
)
indicates a required parameter

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.

Parameters for Reading Input Tables

Parameter

Subparameter

Description

 tunerOptions

lookupTable (and nested parameter table)

specifies a list of parameters for adjusting how the tuner behaves.

Parameters for Creating Output Tables

Parameter

Subparameter

Description

 tunerOptions

historyTable (and nested parameter table)

specifies a list of parameters for adjusting how the tuner behaves.

Parameter Descriptions

scoreOptions=list(key-1=list(any-list-or-data-type-1) <, key-2=list(any-list-or-data-type-2), ...>)

specifies a list of parameters to be used by the score action in the aStore action set; for more information, see the parameters for that action.

* trainOptions=list(key-1=list(any-list-or-data-type-1) <, key-2=list(any-list-or-data-type-2), ...>)

specifies a list of parameters to be used by the factmac action in the factmac action set; for more information, see the parameters for that action.

tunerOptions=list(tunerOptions)

specifies a list of parameters for adjusting how the tuner behaves.

AliasoptMinerOpts

The tunerOptions value can be one or more of the following:

enableLocalSearch=TRUE | FALSE

when set to True, local search optimization is enabled for model tuning.

DefaultTRUE
evaluationHistory=TRUE | FALSE

when set to True, creates a table of every evaluation (every model configuration) and returns those tables to the client.

DefaultTRUE
historyTable=list(history_table)

specifies the CAS table that is created by the autotune action that contains all evaluation history data points.

The history_table value can be one or more of the following:

appendLookupData=TRUE | FALSE

when set to True, specifies that all unused lookup data points be appended to the table specified in the historyTable parameter.

DefaultFALSE
liveUpdate=TRUE | FALSE

when set to True, updates the table specified in the historyTable parameter after every evaluation. When the liveUpdate parameter is set to True, the table is promoted even if the promote parameter is not set to True, in order to allow other sessions to access the table.

DefaultFALSE
* table=list(casouttable)

For more information about specifying the table parameter, see the common casouttable parameter (Appendix A: Common Parameters).

logLevel=integer

specifies the level of log messages to be written: no logs (0), initialization and completion logs (1), setup and iteration results (2), or detailed evaluation results (3).

Default2
Range0–3
lookupTable=list(lookup_table)

specifies the CAS table used by the autotune action for evaluation lookup.

The lookup_table value can be one or more of the following:

selectInitialPoint=TRUE | FALSE

when set to True, selects the best point from the lookup table and uses it as the initial (default) point.

AliasinitPoint
DefaultFALSE
table=list(castable)

specifies the settings for an input table.

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.

AliascompOnDemand
DefaultFALSE
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.

AliascompVars

For more information about specifying the computedVars parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).

computedVarsProgram="string"

specifies an expression for each computed variable that you include in the computedVars parameter.

AliascompPgm
dataSourceOptions=list(key-1=list(any-list-or-data-type-1) <, key-2=list(any-list-or-data-type-2), ...>)

specifies data source options.

Aliasoptions, dataSource
groupByMode="NOSORT" | "REDISTRIBUTE"

specifies how to create groups.

DefaultNOSORT
NOSORT

group the data without sorting on each machine, and then groups the data again on the controller.

REDISTRIBUTE

transfers rows between nodes to guarantee ordering within groups. This method is slower.

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.

Aliasimport

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.

DefaultFALSE
vars=list( list(casinvardesc-1) <, list(casinvardesc-2), ...>)

specifies the variables to use in the action.

For more information about specifying the vars parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).

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 | clouddex-parameters | db2-parameters | dnfs-parameters | esp-parameters | hadoop-parameters | hana-parameters | impala-parameters | jdbc-parameters | mongodb-parameters | mysql-parameters | odbc-parameters | oracle-parameters | path-parameters | postgres-parameters | redshift-parameters | s3-parameters | sforce-parameters | snowflake-parameters | spark-parameters | spde-parameters | sqlserver-parameters | teradata-parameters | vertica-parameters | yellowbrick-parameters)

specifies data source options.

Aliasoptions, 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.

Aliasimport

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.

For more information about specifying the vars parameter, see the common casinvardesc parameter (Appendix A: Common Parameters).

where="where-expression"

specifies an expression for subsetting the data from the filter table.

maxBayesianModelSize=integer

specifies the maximum number of points in the kriging model. This parameter is ignored unless the value "BAYESIAN" is specified in the searchMethod parameter.

AliasmaxBayesianSize
Default500
Minimum value10
maxEvals=integer

specifies the maximum number of objective evaluations (model configurations) to be trained and scored.

AliasmaxEvaluations
Default0
Minimum value0
maxIters=integer

specifies the maximum number of iterations of optimization for model tuning. At each iteration, the number of evaluated models is less than or equal to the value of the popSize parameter.

AliasmaxIterations
Default5
Minimum value1
maxTime=double

specifies the maximum time allowed for tuning. The actual time might exceed this value by the amount of time required to train and score a model configuration.

Default36000
Minimum value1
maxTrainTime=64-bit-integer

specifies the maximum time allowed for a single model training. The model training is terminated if it exceeds this time, and the objective value is set to missing.

Minimum value0
nConvergenceIterations=integer

specifies the number of convergence iterations to use for terminating the tuning.

AliasnConvIters
Default4
Minimum value1
nCrossValFolds=integer

specifies the number of folds to use for cross validation to assess model fit error as the tuning objective.

AliasnFolds
Default5
Minimum value2
nParallel=integer

specifies the number of threads to be used by the optimizer for parallel evaluation of model configurations.

Default0
nSubsessionWorkers=integer

specifies the number of workers to be used by each subsession for parallel evaluation of model configurations.

AliasnSubWorkers
Default0
Minimum value0
objective="ASE" | "AUC" | "F05" | "F1" | "GAMMA" | "GINI" | "KS" | "MAE" | "MCE" | "MCLL" | "MISC" | "MSE" | "MSLE" | "RASE" | "RMAE" | "RMSLE" | "TAU"

specifies the objective metric to use during the tuning.

ASE

specifies the average square error as the objective function.

AUC

specifies area under the curve as the objective function (nominal targets only).

F05

specifies the F0.5 coefficient as the objective function (nominal targets only).

F1

specifies the F1 coefficient as the objective function (nominal targets only).

GAMMA

specifies the gamma coefficient as the objective function (nominal targets only).

GINI

specifies the Gini coefficient as the objective function (nominal targets only).

KS

specifies the Kolmogorov-Smirnov coefficient as the objective function (nominal targets only).

MAE

specifies the mean absolute error as the objective function (interval targets only).

MCE

specifies the misclassification rate as the objective function (nominal targets only).

MCLL

specifies the multiclass log loss as the objective function (nominal targets only).

MISC

specifies the misclassification error percentage as the objective function (nominal targets only).

MSE

specifies the mean square error as the objective function (interval targets only).

MSLE

specifies the mean square logarithmic error as the objective function (interval targets only).

RASE

specifies the root average square error as the objective function.

RMAE

specifies the root mean absolute error as the objective function (interval targets only).

RMSLE

specifies the root mean square logarithmic error as the objective function (interval targets only).

TAU

specifies the tau coefficient as the objective function (nominal targets only).

popSize=integer

specifies the maximum number of model configurations to evaluate at each iteration.

AliaspopulationSize
Default10
Minimum value2
sampleSize=integer

specifies the number of model configurations to evaluate when the value of the searchMethod parameter is "LHS" or "RANDOM".

Default50
Minimum value2
searchMethod="BAYESIAN" | "GA" | "GRID" | "LHS" | "RANDOM"

specifies the search method to use during tuning.

DefaultGA
BAYESIAN

uses the Bayesian search method.

GA

uses the genetic algorithm search method.

GRID

uses the grid search method.

LHS

uses the Latin hypercube sample search method.

RANDOM

uses the random search method.

secondObjective="NONE" | "SCORINGTIME" | "TRAININGTIME"

specifies the type of the second objective to use for tuning.

DefaultNONE
NONE

specifies no second objective to be used for tuning.

SCORINGTIME

specifies model scoring time as the second objective for tuning.

TRAININGTIME

specifies model training time as the second objective for tuning.

seed=integer

specifies the seed to use for selecting training data and validation data for a single validation partition or fold number for each observation for cross validation.

Default0
shuffleGridPoints=TRUE | FALSE

when set to True, shuffles the points that are generated by the grid search method before execution.

DefaultTRUE
targetEvent="string"

specifies the name of the nominal target event to use for tuning.

trainPartitionFraction=double

specifies the size of a single data partition to use for model training during tuning.

AliastrainFraction
Range0.01–0.99
userDefinedPartition=TRUE | FALSE

when set to True, includes a user-defined partition for training and scoring.

DefaultFALSE
validationPartitionFraction=double

specifies the size of a single validation partition to use in order to assess model fit error as the tuning objective.

AliasvalidateFraction
Default0.3
Range0.01–0.99

tuningParameters=list( list(autotuneTuningParmDefinition-1) <, list(autotuneTuningParmDefinition-2), ...>)

specifies a list of custom tuning parameters and their definitions.

The autotuneTuningParmDefinition value can be one or more of the following:

exclude=TRUE | FALSE

when set to True, excludes a tuning parameter from the tuning process.

DefaultFALSE
initValue=integer | 64-bit-integer | double | TRUE | FALSE | "string"

specifies the initial (default) value of a tuning parameter.

lowerBound=double

specifies the lower bound of the range for a tuning parameter. This parameter can be used only for numeric tuning parameters, and is ignored if a value list is specified for the tuning parameter.

AliasLB
namePath="string"

specifies the name path of a tuning parameter. For a nested action parameter, this parameter specifies a dot-separated path that includes all its parent parameter names. For a top-level action parameter, this parameter is simply the name of the parameter.

Aliasname
upperBound=double

specifies the upper bound of the range for a tuning parameter. This parameter can be used only for numeric tuning parameters, and is ignored if a value list is specified for the tuning parameter.

AliasUB
valueList=list(any-list-or-data-type-1 <, any-list-or-data-type-2, ...>)

specifies the list of values to try for a tuning parameter. If this parameter is specified, the lower bound and upper bound values of the tuning parameter are ignored.

useParameters="COMBINED" | "CUSTOM" | "STANDARD"

specifies whether to use only standard tuning parameters, only custom tuning parameters, or a combination of both.

DefaultCOMBINED
Last updated: November 11, 2020