class_docstr: Unit tests for the clustering_centroids module.
class_docstr_tok: ["Unit","tests","for","the","clustering_centroids","module","."]
docstr: Verifies that a TFLinearEquationSolver is constructed correctly.
docstr_tok: ["Verifies","that","a","TFLinearEquationSolver","is","constructed","correctly","."]
code: def testLinearSolverConstruction(self, x1, y1, x2, y2, a, b):
      """Verifies that a TFLinearEquationSolver is constructed correctly."""
      solver = clustering_centroids.TFLinearEquationSolver(
          float(x1), float(y1), float(x2), float(y2)
      )
      solver_a = solver.a
      self.assertAlmostEqual(K.batch_get_value([solver_a])[0], a)
      self.assertAlmostEqual(K.batch_get_value([solver.b])[0], b)
  
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 7 for calling the ClusteringCentroidsTest obj's underlying member method code with example usage: obj.testLinearSolverConstruction(x1, y1, x2, y2, a, b) without return types