class_docstr: Unit tests for the clustering_centroids module.
class_docstr_tok: ["Unit","tests","for","the","clustering_centroids","module","."]
docstr: Verifies that TFCumulativeDistributionFunction yields the expected output for the inputs provided.
docstr_tok: ["Verifies","that","TFCumulativeDistributionFunction","yields","the","expected","output","for","the","inputs","provided","."]
code: def testCDFValues(self, weights, point, probability):
      """Verifies that TFCumulativeDistributionFunction yields the expected output for the inputs provided."""
      cdf_calc = clustering_centroids.TFCumulativeDistributionFunction(
          weights
      )
      self.assertAlmostEqual(
          probability,
          K.batch_get_value([cdf_calc.get_cdf_value(point)])[0],
      )
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_model_optimization.python.core.clustering.keras import cluster_config
  from tensorflow_model_optimization.python.core.clustering.keras import clustering_centroids
label_desc: Use image node_id 10 for calling the ClusteringCentroidsTest obj's underlying member method code with example usage: obj.testCDFValues(weights, point, probability) without return types