class_docstr: Accepts drift check baselines parameters for conversion to request dict.
docstr: Generates a request dictionary using the parameters provided to the class.
docstr_tok: ["Generates","a","request","dictionary","using","the","parameters","provided","to","the","class","."]
code: def _to_request_dict(self):
      """Generates a request dictionary using the parameters provided to the class."""
      drift_check_baselines_request = {}
  
      model_quality = {}
      if self.model_statistics is not None:
          model_quality[
              "Statistics"
          ] = self.model_statistics._to_request_dict()
      if self.model_constraints is not None:
          model_quality[
              "Constraints"
          ] = self.model_constraints._to_request_dict()
      if model_quality:
          drift_check_baselines_request["ModelQuality"] = model_quality
  
      model_data_quality = {}
      if self.model_data_statistics is not None:
          model_data_quality[
              "Statistics"
          ] = self.model_data_statistics._to_request_dict()
      if self.model_data_constraints is not None:
          model_data_quality[
              "Constraints"
          ] = self.model_data_constraints._to_request_dict()
      if model_data_quality:
          drift_check_baselines_request[
              "ModelDataQuality"
          ] = model_data_quality
  
      bias = {}
      if self.bias_config_file is not None:
          bias["ConfigFile"] = self.bias_config_file._to_request_dict()
      if self.bias_pre_training_constraints is not None:
          bias[
              "PreTrainingConstraints"
          ] = self.bias_pre_training_constraints._to_request_dict()
      if self.bias_post_training_constraints is not None:
          bias[
              "PostTrainingConstraints"
          ] = self.bias_post_training_constraints._to_request_dict()
      if bias:
          drift_check_baselines_request["Bias"] = bias
  
      explainability = {}
      if self.explainability_constraints is not None:
          explainability[
              "Constraints"
          ] = self.explainability_constraints._to_request_dict()
      if self.explainability_config_file is not None:
          explainability[
              "ConfigFile"
          ] = self.explainability_config_file._to_request_dict()
      if explainability:
          drift_check_baselines_request[
              "Explainability"
          ] = explainability
  
      return drift_check_baselines_request
  
imports: from __future__ import absolute_import
  from typing import Optional
  from sagemaker.model_metrics import MetricsSource, FileSource
label_desc: Use image node_id 2 for calling the DriftCheckBaselines obj's underlying member method code with example usage: obj._to_request_dict() and returns: drift_check_baselines_request