BiasConfig | R Documentation |
Config object related to bias configurations of the input dataset.
analysis_config
Analysis config dictionary
new()
Initializes a configuration of the sensitive groups in the dataset.
BiasConfig$new( label_values_or_threshold, facet_name, facet_values_or_threshold = NULL, group_name = NULL )
label_values_or_threshold
(Any): List of label values or threshold to indicate positive outcome used for bias metrics.
facet_name
(str): Sensitive attribute in the input data for which we like to compare metrics.
facet_values_or_threshold
(list): Optional list of values to form a sensitive group or threshold for a numeric facet column that defines the lower bound of a sensitive group. Defaults to considering each possible value as sensitive group and computing metrics vs all the other examples.
group_name
(str): Optional column name or index to indicate a group column to be used for the bias metric 'Conditional Demographic Disparity in Labels - CDDL' or 'Conditional Demographic Disparity in Predicted Labels - CDDPL'.
get_config()
Returns part of an analysis config dictionary.
BiasConfig$get_config()
format()
format class
BiasConfig$format()
clone()
The objects of this class are cloneable with this method.
BiasConfig$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.