class_docstr: Calibration plot.
class_docstr_tok: ["Calibration","plot","."]
docstr: Initializes calibration plot.
  
  Args:
    num_buckets: Number of buckets to use when creating the plot. Defaults to
      1000.
    left: Left boundary of plot. Defaults to 0.0 when a schema is not
      provided.
    right: Right boundary of plot. Defaults to 1.0 when a schema is not
      provided.
    name: Plot name.
docstr_tok: ["Initializes","calibration","plot",".","Args",":","num_buckets",":","Number","of","buckets","to","use","when","creating","the","plot",".","Defaults","to","1000.","left",":","Left","boundary","of","plot",".","Defaults","to","0.0","when","a","schema","is","not","provided",".","right",":","Right","boundary","of","plot",".","Defaults","to","1.0","when","a","schema","is","not","provided",".","name",":","Plot","name","."]
code: def __init__(
      self,
      num_buckets: int = DEFAULT_NUM_BUCKETS,
      left: Optional[float] = None,
      right: Optional[float] = None,
      name: str = CALIBRATION_PLOT_NAME,
  ):
      """Initializes calibration plot.
  
      Args:
        num_buckets: Number of buckets to use when creating the plot. Defaults to
          1000.
        left: Left boundary of plot. Defaults to 0.0 when a schema is not
          provided.
        right: Right boundary of plot. Defaults to 1.0 when a schema is not
          provided.
        name: Plot name.
      """
      super().__init__(
          metric_util.merge_per_key_computations(_calibration_plot),
          num_buckets=num_buckets,
          left=left,
          right=right,
          name=name,
      )
  
file_path: model-analysis/tensorflow_model_analysis/metrics/calibration_plot.py
imports: from typing import Any, Dict, List, Optional, Tuple, Union
  from tensorflow_model_analysis.metrics import calibration_histogram
  from tensorflow_model_analysis.metrics import metric_types
  from tensorflow_model_analysis.metrics import metric_util
  from tensorflow_model_analysis.proto import config_pb2
  from tensorflow_model_analysis.proto import metrics_for_slice_pb2
  from tensorflow_model_analysis.utils import model_util
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 1 to create a new CalibrationPlot object from inherited base classes: metric_types with example: obj = CalibrationPlot(num_buckets, left, right, name)