Provides actions for calculating bias metrics and mitigating bias for predictive models.
Mitigate bias during the training of predictive models.
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 data table. |
|
required parametertable |
specifies a list of tables to modify and pass to the training program (specified by the trainProgram parameter). The table that you specify in the table parameter is appended to this list. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
required parametercasout |
specifies a list of tables to save after running the training program (specified by the trainProgram parameter). Tables are saved only if the bias measurement that you specify in the biasMetric parameter improves in that iteration. |
specifies the type of bias measurement. You can specify four types: 'DEMOGRAPHICPARITY', 'EQUALIZEDODDS', 'EQUALOPPORTUNITY', or 'PREDICTIVEPARITY'.
| Default | "PREDICTIVEPARITY" |
|---|
specifies the bound value for the exponentiated gradient reduction algorithm.
| Default | 100 |
|---|---|
| Minimum value | 1 |
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the copyVars list for scored table creation.
| Default | "copyVars" |
|---|
specifies the cutoff for the confusion matrix.
| Alias | intoCutPt |
|---|---|
| Default | 0.5 |
| Range | (0, 1) |
specifies the formatted value of the response (target) variable that represents the event of interest.
specifies the variable that contains frequency values.
For more information about specifying the frequency parameter, see the common casvardesc parameter (Appendix A: Common Parameters).
| Alias | freq |
|---|
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the value of the current exponentiated gradient reduction iteration.
| Default | "iteration" |
|---|
specifies the step size to use in updating the exponentiated gradient reduction algorithm.
| Default | 0.01 |
|---|---|
| Range | (0, 1) |
specifies the level of log information to print. Higher levels display more information.
| Default | 1 |
|---|---|
| Range | 0–7 |
specifies the maximum number of iterations to run the exponentiated gradient reduction algorithm.
| Alias | maxIterations |
|---|---|
| Default | 10 |
| Range | 1–50 |
specifies the number of bins to use in lift calculations.
| Default | 20 |
|---|---|
| Range | 2–100 |
specifies the list of variables that contain the model's predictions. The order of the variables must match the order that you specify in the responseLevels parameter. Alternatively, you can pass the list of variables as a return from the training program (specified by the trainProgram parameter) by using the predictedVariablesResultKey parameter.
specifies the name for the variable.
specifies the results key that is returned by the training program (specified by the trainProgram parameter) that specifies the predicted variable names.
| Default | "predictedVariables" |
|---|
specifies the response (target) variable for supervised learning.
| Alias | target |
|---|
specifies the name for the variable.
specifies the list of formatted values of the response (target) variable. The order of the variables must match the order that you specify in the predictedVariables parameter. If the event parameter is omitted, the first formatted value is assumed to be the event.
| Alias | targetLevels |
|---|
specifies the results key that is returned by the training program (specified by the trainProgram parameter) that specifies the response (target) variable levels.
| Alias | targetLevelsResultKey |
|---|---|
| Default | "responseLevels" |
specifies the step size to use for the receiver operating characteristic (ROC) calculations.
| Alias | cutStep |
|---|---|
| Default | 0.05 |
| Range | (0–0.5] |
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the output specification for the scored table.
| Default | "casout" |
|---|
specifies the seed for the random number generator. By default, the random number stream is based on the time of day from the computer's clock. A zero or negative seed value also results in random number streams that are based on the time of day from the computer's clock. If you want a reproducible random number sequence between runs, specify a value greater than 0.
| Default | 0 |
|---|
specifies the depth to use in lift calculations.
| Default | 10 |
|---|---|
| Range | (0–100] |
specifies the sensitive variable to use in bias calculations.
specifies the name for the variable.
specifies the input data table.
| Long form | table={name="table-name"} |
|---|---|
| Shortcut form | table="table-name" |
The castable value can be one or more of the following:
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.
when set to True, creates the computed variables when the table is loaded instead of when the action begins.
| Alias | compOnDemand |
|---|---|
| Default | FALSE |
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:
specifies the format to apply to the variable.
specifies the length of the format field plus the length of the format precision.
specifies the descriptive label for the variable.
specifies the name for the variable.
specifies the length of the format precision.
specifies the length of the format field.
specifies an expression for each computed variable that you include in the computedVars parameter.
| Alias | compPgm |
|---|
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
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).
specifies the name of the input table.
This parameter is deprecated.
| Default | TRUE |
|---|
specifies an expression for subsetting the input data.
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:
specifies the caslib for the filter table. By default, the active caslib is used.
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter (Appendix A: Common 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).
specifies the name of the filter table.
specifies the variable names to use from the filter table.
The casinvardesc value can be one or more of the following:
specifies the format to apply to the variable.
specifies the length of the format field plus the length of the format precision.
specifies the descriptive label for the variable.
specifies the name for the variable.
specifies the length of the format precision.
specifies the length of the format field.
specifies an expression for subsetting the data from the filter table.
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains modified input data table information. Training steps that you are mitigating must use this table.
| Default | "table" |
|---|
specifies a list of tables to modify and pass to the training program (specified by the trainProgram parameter). The table that you specify in the table parameter is appended to this list.
The fairaitools_mitigateBias_tableModList value can be one or more of the following:
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the modified input data table information.
specifies the input data table.
The castable value can be one or more of the following:
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.
when set to True, creates the computed variables when the table is loaded instead of when the action begins.
| Alias | compOnDemand |
|---|---|
| Default | FALSE |
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:
specifies the format to apply to the variable.
specifies the length of the format field plus the length of the format precision.
specifies the descriptive label for the variable.
specifies the name for the variable.
specifies the length of the format precision.
specifies the length of the format field.
specifies an expression for each computed variable that you include in the computedVars parameter.
| Alias | compPgm |
|---|
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
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).
specifies the name of the input table.
This parameter is deprecated.
| Default | TRUE |
|---|
specifies an expression for subsetting the input data.
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:
specifies the caslib for the filter table. By default, the active caslib is used.
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter (Appendix A: Common 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).
specifies the name of the filter table.
specifies the variable names to use from the filter table.
The casinvardesc value can be one or more of the following:
specifies the format to apply to the variable.
specifies the length of the format field plus the length of the format precision.
specifies the descriptive label for the variable.
specifies the name for the variable.
specifies the length of the format precision.
specifies the length of the format field.
specifies an expression for subsetting the data from the filter table.
specifies a list of tables to save after running the training program (specified by the trainProgram parameter). Tables are saved only if the bias measurement that you specify in the biasMetric parameter improves in that iteration.
The fairaitools_mitigateBias_tableSaveList value can be one or more of the following:
specifies where to save the table that is returned by the training program (specified by the trainProgram parameter).
For more information about specifying the casout parameter, see the common casouttable (Form 2) parameter (Appendix A: Common Parameters).
specifies the name of the response key that is returned by the training program (specified by the trainProgram parameter) that specifies the table to copy.
specifies the parity constraint violation tolerance. If you set this parameter to 0, the action trains for the maximum number of iterations, which you specify in the maxIters parameter.
| Default | 0.005 |
|---|---|
| Range | [0–1) |
specifies the CASL training code to train a model. This code is used in conjunction with the values that you specify in the copyVarsCASLVariable, scoredCASLVariable, tableCASLVariable, and weightCASLVariable parameters.
| Alias | code |
|---|
when set to True, specifies that the bound value must be tuned.
| Default | FALSE |
|---|
specifies additional variables to pass to the training program (specified by the trainProgram parameter).
specifies the variable that contains weight values. Weights that are produced by the exponentiated gradient reduction algorithm are multiplied by these values during training.
For more information about specifying the weight parameter, see the common casvardesc parameter (Appendix A: Common Parameters).
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the name of the weight variable.
| Default | "weight" |
|---|
Mitigate bias during the training of predictive models.
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 data table. |
|
required parametertable |
specifies a list of tables to modify and pass to the training program (specified by the trainProgram parameter). The table that you specify in the table parameter is appended to this list. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
required parametercasout |
specifies a list of tables to save after running the training program (specified by the trainProgram parameter). Tables are saved only if the bias measurement that you specify in the biasMetric parameter improves in that iteration. |
specifies the type of bias measurement. You can specify four types: 'DEMOGRAPHICPARITY', 'EQUALIZEDODDS', 'EQUALOPPORTUNITY', or 'PREDICTIVEPARITY'.
| Default | "PREDICTIVEPARITY" |
|---|
specifies the bound value for the exponentiated gradient reduction algorithm.
| Default | 100 |
|---|---|
| Minimum value | 1 |
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the copyVars list for scored table creation.
| Default | "copyVars" |
|---|
specifies the cutoff for the confusion matrix.
| Alias | intoCutPt |
|---|---|
| Default | 0.5 |
| Range | (0, 1) |
specifies the formatted value of the response (target) variable that represents the event of interest.
specifies the variable that contains frequency values.
For more information about specifying the frequency parameter, see the common casvardesc parameter (Appendix A: Common Parameters).
| Alias | freq |
|---|
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the value of the current exponentiated gradient reduction iteration.
| Default | "iteration" |
|---|
specifies the step size to use in updating the exponentiated gradient reduction algorithm.
| Default | 0.01 |
|---|---|
| Range | (0, 1) |
specifies the level of log information to print. Higher levels display more information.
| Default | 1 |
|---|---|
| Range | 0–7 |
specifies the maximum number of iterations to run the exponentiated gradient reduction algorithm.
| Alias | maxIterations |
|---|---|
| Default | 10 |
| Range | 1–50 |
specifies the number of bins to use in lift calculations.
| Default | 20 |
|---|---|
| Range | 2–100 |
specifies the list of variables that contain the model's predictions. The order of the variables must match the order that you specify in the responseLevels parameter. Alternatively, you can pass the list of variables as a return from the training program (specified by the trainProgram parameter) by using the predictedVariablesResultKey parameter.
specifies the name for the variable.
specifies the results key that is returned by the training program (specified by the trainProgram parameter) that specifies the predicted variable names.
| Default | "predictedVariables" |
|---|
specifies the response (target) variable for supervised learning.
| Alias | target |
|---|
specifies the name for the variable.
specifies the list of formatted values of the response (target) variable. The order of the variables must match the order that you specify in the predictedVariables parameter. If the event parameter is omitted, the first formatted value is assumed to be the event.
| Alias | targetLevels |
|---|
specifies the results key that is returned by the training program (specified by the trainProgram parameter) that specifies the response (target) variable levels.
| Alias | targetLevelsResultKey |
|---|---|
| Default | "responseLevels" |
specifies the step size to use for the receiver operating characteristic (ROC) calculations.
| Alias | cutStep |
|---|---|
| Default | 0.05 |
| Range | (0–0.5] |
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the output specification for the scored table.
| Default | "casout" |
|---|
specifies the seed for the random number generator. By default, the random number stream is based on the time of day from the computer's clock. A zero or negative seed value also results in random number streams that are based on the time of day from the computer's clock. If you want a reproducible random number sequence between runs, specify a value greater than 0.
| Default | 0 |
|---|
specifies the depth to use in lift calculations.
| Default | 10 |
|---|---|
| Range | (0–100] |
specifies the sensitive variable to use in bias calculations.
specifies the name for the variable.
specifies the input data table.
| Long form | table={name="table-name"} |
|---|---|
| Shortcut form | table="table-name" |
The castable value can be one or more of the following:
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.
when set to True, creates the computed variables when the table is loaded instead of when the action begins.
| Alias | compOnDemand |
|---|---|
| Default | false |
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:
specifies the format to apply to the variable.
specifies the length of the format field plus the length of the format precision.
specifies the descriptive label for the variable.
specifies the name for the variable.
specifies the length of the format precision.
specifies the length of the format field.
specifies an expression for each computed variable that you include in the computedVars parameter.
| Alias | compPgm |
|---|
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
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).
specifies the name of the input table.
This parameter is deprecated.
| Default | true |
|---|
specifies an expression for subsetting the input data.
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:
specifies the caslib for the filter table. By default, the active caslib is used.
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter (Appendix A: Common 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).
specifies the name of the filter table.
specifies the variable names to use from the filter table.
The casinvardesc value can be one or more of the following:
specifies the format to apply to the variable.
specifies the length of the format field plus the length of the format precision.
specifies the descriptive label for the variable.
specifies the name for the variable.
specifies the length of the format precision.
specifies the length of the format field.
specifies an expression for subsetting the data from the filter table.
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains modified input data table information. Training steps that you are mitigating must use this table.
| Default | "table" |
|---|
specifies a list of tables to modify and pass to the training program (specified by the trainProgram parameter). The table that you specify in the table parameter is appended to this list.
The fairaitools_mitigateBias_tableModList value can be one or more of the following:
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the modified input data table information.
specifies the input data table.
The castable value can be one or more of the following:
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.
when set to True, creates the computed variables when the table is loaded instead of when the action begins.
| Alias | compOnDemand |
|---|---|
| Default | false |
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:
specifies the format to apply to the variable.
specifies the length of the format field plus the length of the format precision.
specifies the descriptive label for the variable.
specifies the name for the variable.
specifies the length of the format precision.
specifies the length of the format field.
specifies an expression for each computed variable that you include in the computedVars parameter.
| Alias | compPgm |
|---|
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
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).
specifies the name of the input table.
This parameter is deprecated.
| Default | true |
|---|
specifies an expression for subsetting the input data.
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:
specifies the caslib for the filter table. By default, the active caslib is used.
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter (Appendix A: Common 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).
specifies the name of the filter table.
specifies the variable names to use from the filter table.
The casinvardesc value can be one or more of the following:
specifies the format to apply to the variable.
specifies the length of the format field plus the length of the format precision.
specifies the descriptive label for the variable.
specifies the name for the variable.
specifies the length of the format precision.
specifies the length of the format field.
specifies an expression for subsetting the data from the filter table.
specifies a list of tables to save after running the training program (specified by the trainProgram parameter). Tables are saved only if the bias measurement that you specify in the biasMetric parameter improves in that iteration.
The fairaitools_mitigateBias_tableSaveList value can be one or more of the following:
specifies where to save the table that is returned by the training program (specified by the trainProgram parameter).
For more information about specifying the casout parameter, see the common casouttable (Form 2) parameter (Appendix A: Common Parameters).
specifies the name of the response key that is returned by the training program (specified by the trainProgram parameter) that specifies the table to copy.
specifies the parity constraint violation tolerance. If you set this parameter to 0, the action trains for the maximum number of iterations, which you specify in the maxIters parameter.
| Default | 0.005 |
|---|---|
| Range | [0–1) |
specifies the CASL training code to train a model. This code is used in conjunction with the values that you specify in the copyVarsCASLVariable, scoredCASLVariable, tableCASLVariable, and weightCASLVariable parameters.
| Alias | code |
|---|
when set to True, specifies that the bound value must be tuned.
| Default | false |
|---|
specifies additional variables to pass to the training program (specified by the trainProgram parameter).
specifies the variable that contains weight values. Weights that are produced by the exponentiated gradient reduction algorithm are multiplied by these values during training.
For more information about specifying the weight parameter, see the common casvardesc parameter (Appendix A: Common Parameters).
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the name of the weight variable.
| Default | "weight" |
|---|
Mitigate bias during the training of predictive models.
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 data table. |
|
required parametertable |
specifies a list of tables to modify and pass to the training program (specified by the trainProgram parameter). The table that you specify in the table parameter is appended to this list. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
required parametercasout |
specifies a list of tables to save after running the training program (specified by the trainProgram parameter). Tables are saved only if the bias measurement that you specify in the biasMetric parameter improves in that iteration. |
specifies the type of bias measurement. You can specify four types: 'DEMOGRAPHICPARITY', 'EQUALIZEDODDS', 'EQUALOPPORTUNITY', or 'PREDICTIVEPARITY'.
| Default | "PREDICTIVEPARITY" |
|---|
specifies the bound value for the exponentiated gradient reduction algorithm.
| Default | 100 |
|---|---|
| Minimum value | 1 |
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the copyVars list for scored table creation.
| Default | "copyVars" |
|---|
specifies the cutoff for the confusion matrix.
| Alias | intoCutPt |
|---|---|
| Default | 0.5 |
| Range | (0, 1) |
specifies the formatted value of the response (target) variable that represents the event of interest.
specifies the variable that contains frequency values.
For more information about specifying the frequency parameter, see the common casvardesc parameter (Appendix A: Common Parameters).
| Alias | freq |
|---|
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the value of the current exponentiated gradient reduction iteration.
| Default | "iteration" |
|---|
specifies the step size to use in updating the exponentiated gradient reduction algorithm.
| Default | 0.01 |
|---|---|
| Range | (0, 1) |
specifies the level of log information to print. Higher levels display more information.
| Default | 1 |
|---|---|
| Range | 0–7 |
specifies the maximum number of iterations to run the exponentiated gradient reduction algorithm.
| Alias | maxIterations |
|---|---|
| Default | 10 |
| Range | 1–50 |
specifies the number of bins to use in lift calculations.
| Default | 20 |
|---|---|
| Range | 2–100 |
specifies the list of variables that contain the model's predictions. The order of the variables must match the order that you specify in the responseLevels parameter. Alternatively, you can pass the list of variables as a return from the training program (specified by the trainProgram parameter) by using the predictedVariablesResultKey parameter.
specifies the name for the variable.
specifies the results key that is returned by the training program (specified by the trainProgram parameter) that specifies the predicted variable names.
| Default | "predictedVariables" |
|---|
specifies the response (target) variable for supervised learning.
| Alias | target |
|---|
specifies the name for the variable.
specifies the list of formatted values of the response (target) variable. The order of the variables must match the order that you specify in the predictedVariables parameter. If the event parameter is omitted, the first formatted value is assumed to be the event.
| Alias | targetLevels |
|---|
specifies the results key that is returned by the training program (specified by the trainProgram parameter) that specifies the response (target) variable levels.
| Alias | targetLevelsResultKey |
|---|---|
| Default | "responseLevels" |
specifies the step size to use for the receiver operating characteristic (ROC) calculations.
| Alias | cutStep |
|---|---|
| Default | 0.05 |
| Range | (0–0.5] |
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the output specification for the scored table.
| Default | "casout" |
|---|
specifies the seed for the random number generator. By default, the random number stream is based on the time of day from the computer's clock. A zero or negative seed value also results in random number streams that are based on the time of day from the computer's clock. If you want a reproducible random number sequence between runs, specify a value greater than 0.
| Default | 0 |
|---|
specifies the depth to use in lift calculations.
| Default | 10 |
|---|---|
| Range | (0–100] |
specifies the sensitive variable to use in bias calculations.
specifies the name for the variable.
specifies the input data table.
| Long form | table={"name":"table-name"} |
|---|---|
| Shortcut form | table="table-name" |
The castable value can be one or more of the following:
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.
when set to True, creates the computed variables when the table is loaded instead of when the action begins.
| Alias | compOnDemand |
|---|---|
| Default | False |
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:
specifies the format to apply to the variable.
specifies the length of the format field plus the length of the format precision.
specifies the descriptive label for the variable.
specifies the name for the variable.
specifies the length of the format precision.
specifies the length of the format field.
specifies an expression for each computed variable that you include in the computedVars parameter.
| Alias | compPgm |
|---|
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
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).
specifies the name of the input table.
This parameter is deprecated.
| Default | True |
|---|
specifies an expression for subsetting the input data.
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:
specifies the caslib for the filter table. By default, the active caslib is used.
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter (Appendix A: Common 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).
specifies the name of the filter table.
specifies the variable names to use from the filter table.
The casinvardesc value can be one or more of the following:
specifies the format to apply to the variable.
specifies the length of the format field plus the length of the format precision.
specifies the descriptive label for the variable.
specifies the name for the variable.
specifies the length of the format precision.
specifies the length of the format field.
specifies an expression for subsetting the data from the filter table.
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains modified input data table information. Training steps that you are mitigating must use this table.
| Default | "table" |
|---|
specifies a list of tables to modify and pass to the training program (specified by the trainProgram parameter). The table that you specify in the table parameter is appended to this list.
The fairaitools_mitigateBias_tableModList value can be one or more of the following:
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the modified input data table information.
specifies the input data table.
The castable value can be one or more of the following:
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.
when set to True, creates the computed variables when the table is loaded instead of when the action begins.
| Alias | compOnDemand |
|---|---|
| Default | False |
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:
specifies the format to apply to the variable.
specifies the length of the format field plus the length of the format precision.
specifies the descriptive label for the variable.
specifies the name for the variable.
specifies the length of the format precision.
specifies the length of the format field.
specifies an expression for each computed variable that you include in the computedVars parameter.
| Alias | compPgm |
|---|
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
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).
specifies the name of the input table.
This parameter is deprecated.
| Default | True |
|---|
specifies an expression for subsetting the input data.
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:
specifies the caslib for the filter table. By default, the active caslib is used.
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter (Appendix A: Common 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).
specifies the name of the filter table.
specifies the variable names to use from the filter table.
The casinvardesc value can be one or more of the following:
specifies the format to apply to the variable.
specifies the length of the format field plus the length of the format precision.
specifies the descriptive label for the variable.
specifies the name for the variable.
specifies the length of the format precision.
specifies the length of the format field.
specifies an expression for subsetting the data from the filter table.
specifies a list of tables to save after running the training program (specified by the trainProgram parameter). Tables are saved only if the bias measurement that you specify in the biasMetric parameter improves in that iteration.
The fairaitools_mitigateBias_tableSaveList value can be one or more of the following:
specifies where to save the table that is returned by the training program (specified by the trainProgram parameter).
For more information about specifying the casout parameter, see the common casouttable (Form 2) parameter (Appendix A: Common Parameters).
specifies the name of the response key that is returned by the training program (specified by the trainProgram parameter) that specifies the table to copy.
specifies the parity constraint violation tolerance. If you set this parameter to 0, the action trains for the maximum number of iterations, which you specify in the maxIters parameter.
| Default | 0.005 |
|---|---|
| Range | [0–1) |
specifies the CASL training code to train a model. This code is used in conjunction with the values that you specify in the copyVarsCASLVariable, scoredCASLVariable, tableCASLVariable, and weightCASLVariable parameters.
| Alias | code |
|---|
when set to True, specifies that the bound value must be tuned.
| Default | False |
|---|
specifies additional variables to pass to the training program (specified by the trainProgram parameter).
specifies the variable that contains weight values. Weights that are produced by the exponentiated gradient reduction algorithm are multiplied by these values during training.
For more information about specifying the weight parameter, see the common casvardesc parameter (Appendix A: Common Parameters).
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the name of the weight variable.
| Default | "weight" |
|---|
Mitigate bias during the training of predictive models.
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 data table. |
|
required parametertable |
specifies a list of tables to modify and pass to the training program (specified by the trainProgram parameter). The table that you specify in the table parameter is appended to this list. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
required parametercasout |
specifies a list of tables to save after running the training program (specified by the trainProgram parameter). Tables are saved only if the bias measurement that you specify in the biasMetric parameter improves in that iteration. |
specifies the type of bias measurement. You can specify four types: 'DEMOGRAPHICPARITY', 'EQUALIZEDODDS', 'EQUALOPPORTUNITY', or 'PREDICTIVEPARITY'.
| Default | "PREDICTIVEPARITY" |
|---|
specifies the bound value for the exponentiated gradient reduction algorithm.
| Default | 100 |
|---|---|
| Minimum value | 1 |
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the copyVars list for scored table creation.
| Default | "copyVars" |
|---|
specifies the cutoff for the confusion matrix.
| Alias | intoCutPt |
|---|---|
| Default | 0.5 |
| Range | (0, 1) |
specifies the formatted value of the response (target) variable that represents the event of interest.
specifies the variable that contains frequency values.
For more information about specifying the frequency parameter, see the common casvardesc parameter (Appendix A: Common Parameters).
| Alias | freq |
|---|
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the value of the current exponentiated gradient reduction iteration.
| Default | "iteration" |
|---|
specifies the step size to use in updating the exponentiated gradient reduction algorithm.
| Default | 0.01 |
|---|---|
| Range | (0, 1) |
specifies the level of log information to print. Higher levels display more information.
| Default | 1 |
|---|---|
| Range | 0–7 |
specifies the maximum number of iterations to run the exponentiated gradient reduction algorithm.
| Alias | maxIterations |
|---|---|
| Default | 10 |
| Range | 1–50 |
specifies the number of bins to use in lift calculations.
| Default | 20 |
|---|---|
| Range | 2–100 |
specifies the list of variables that contain the model's predictions. The order of the variables must match the order that you specify in the responseLevels parameter. Alternatively, you can pass the list of variables as a return from the training program (specified by the trainProgram parameter) by using the predictedVariablesResultKey parameter.
specifies the name for the variable.
specifies the results key that is returned by the training program (specified by the trainProgram parameter) that specifies the predicted variable names.
| Default | "predictedVariables" |
|---|
specifies the response (target) variable for supervised learning.
| Alias | target |
|---|
specifies the name for the variable.
specifies the list of formatted values of the response (target) variable. The order of the variables must match the order that you specify in the predictedVariables parameter. If the event parameter is omitted, the first formatted value is assumed to be the event.
| Alias | targetLevels |
|---|
specifies the results key that is returned by the training program (specified by the trainProgram parameter) that specifies the response (target) variable levels.
| Alias | targetLevelsResultKey |
|---|---|
| Default | "responseLevels" |
specifies the step size to use for the receiver operating characteristic (ROC) calculations.
| Alias | cutStep |
|---|---|
| Default | 0.05 |
| Range | (0–0.5] |
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the output specification for the scored table.
| Default | "casout" |
|---|
specifies the seed for the random number generator. By default, the random number stream is based on the time of day from the computer's clock. A zero or negative seed value also results in random number streams that are based on the time of day from the computer's clock. If you want a reproducible random number sequence between runs, specify a value greater than 0.
| Default | 0 |
|---|
specifies the depth to use in lift calculations.
| Default | 10 |
|---|---|
| Range | (0–100] |
specifies the sensitive variable to use in bias calculations.
specifies the name for the variable.
specifies the input data table.
| Long form | table=list(name="table-name") |
|---|---|
| Shortcut form | table="table-name" |
The castable value can be one or more of the following:
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.
when set to True, creates the computed variables when the table is loaded instead of when the action begins.
| Alias | compOnDemand |
|---|---|
| Default | FALSE |
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:
specifies the format to apply to the variable.
specifies the length of the format field plus the length of the format precision.
specifies the descriptive label for the variable.
specifies the name for the variable.
specifies the length of the format precision.
specifies the length of the format field.
specifies an expression for each computed variable that you include in the computedVars parameter.
| Alias | compPgm |
|---|
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
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).
specifies the name of the input table.
This parameter is deprecated.
| Default | TRUE |
|---|
specifies an expression for subsetting the input data.
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:
specifies the caslib for the filter table. By default, the active caslib is used.
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter (Appendix A: Common 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).
specifies the name of the filter table.
specifies the variable names to use from the filter table.
The casinvardesc value can be one or more of the following:
specifies the format to apply to the variable.
specifies the length of the format field plus the length of the format precision.
specifies the descriptive label for the variable.
specifies the name for the variable.
specifies the length of the format precision.
specifies the length of the format field.
specifies an expression for subsetting the data from the filter table.
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains modified input data table information. Training steps that you are mitigating must use this table.
| Default | "table" |
|---|
specifies a list of tables to modify and pass to the training program (specified by the trainProgram parameter). The table that you specify in the table parameter is appended to this list.
The fairaitools_mitigateBias_tableModList value can be one or more of the following:
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the modified input data table information.
specifies the input data table.
The castable value can be one or more of the following:
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.
when set to True, creates the computed variables when the table is loaded instead of when the action begins.
| Alias | compOnDemand |
|---|---|
| Default | FALSE |
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:
specifies the format to apply to the variable.
specifies the length of the format field plus the length of the format precision.
specifies the descriptive label for the variable.
specifies the name for the variable.
specifies the length of the format precision.
specifies the length of the format field.
specifies an expression for each computed variable that you include in the computedVars parameter.
| Alias | compPgm |
|---|
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
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).
specifies the name of the input table.
This parameter is deprecated.
| Default | TRUE |
|---|
specifies an expression for subsetting the input data.
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:
specifies the caslib for the filter table. By default, the active caslib is used.
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter (Appendix A: Common 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).
specifies the name of the filter table.
specifies the variable names to use from the filter table.
The casinvardesc value can be one or more of the following:
specifies the format to apply to the variable.
specifies the length of the format field plus the length of the format precision.
specifies the descriptive label for the variable.
specifies the name for the variable.
specifies the length of the format precision.
specifies the length of the format field.
specifies an expression for subsetting the data from the filter table.
specifies a list of tables to save after running the training program (specified by the trainProgram parameter). Tables are saved only if the bias measurement that you specify in the biasMetric parameter improves in that iteration.
The fairaitools_mitigateBias_tableSaveList value can be one or more of the following:
specifies where to save the table that is returned by the training program (specified by the trainProgram parameter).
For more information about specifying the casout parameter, see the common casouttable (Form 2) parameter (Appendix A: Common Parameters).
specifies the name of the response key that is returned by the training program (specified by the trainProgram parameter) that specifies the table to copy.
specifies the parity constraint violation tolerance. If you set this parameter to 0, the action trains for the maximum number of iterations, which you specify in the maxIters parameter.
| Default | 0.005 |
|---|---|
| Range | [0–1) |
specifies the CASL training code to train a model. This code is used in conjunction with the values that you specify in the copyVarsCASLVariable, scoredCASLVariable, tableCASLVariable, and weightCASLVariable parameters.
| Alias | code |
|---|
when set to True, specifies that the bound value must be tuned.
| Default | FALSE |
|---|
specifies additional variables to pass to the training program (specified by the trainProgram parameter).
specifies the variable that contains weight values. Weights that are produced by the exponentiated gradient reduction algorithm are multiplied by these values during training.
For more information about specifying the weight parameter, see the common casvardesc parameter (Appendix A: Common Parameters).
specifies the name of the CASL variable that is passed to the training program (specified by the trainProgram parameter) that contains the name of the weight variable.
| Default | "weight" |
|---|