class_docstr: Weight clustering compression module config.
class_docstr_tok: ["Weight","clustering","compression","module","config","."]
code: def __init__(self, number_of_clusters, cluster_centroids_init):
      self.number_of_clusters = number_of_clusters
      self.cluster_centroids_init = cluster_centroids_init
  
file_path: model-optimization/tensorflow_model_optimization/python/core/common/keras/compression/algorithms/weight_clustering.py
imports: from typing import List
  import tensorflow
  from tensorflow_model_optimization.python.core.clustering.keras import clustering_centroids
  from tensorflow_model_optimization.python.core.clustering.keras import clustering_registry
  from tensorflow_model_optimization.python.core.clustering.keras.cluster_config import GradientAggregation
  from tensorflow_model_optimization.python.core.common.keras.compression import algorithm
label_desc: Use image node_id 1 to create a new WeightClustering object from inherited base classes: algorithm with example: obj = WeightClustering(number_of_clusters, cluster_centroids_init)