class_docstr: Deprecated: use :class:`stellargraph.layer.GCN` with :class:`stellargraph.mapper.ClusterNodeGenerator`.
class_docstr_tok: ["Deprecated",":","use",":","class",":","`","stellargraph.layer.GCN","`","with",":","class",":","`","stellargraph.mapper.ClusterNodeGenerator","`","."]
code: def __init__(
      self,
      # the parameter order is slightly different between this and GCN, so the *args,
      # **kwargs trick doesn't work
      layer_sizes,
      activations,
      generator,
      bias=True,
      dropout=0.0,
      kernel_initializer="glorot_uniform",
      kernel_regularizer=None,
      kernel_constraint=None,
      bias_initializer="zeros",
      bias_regularizer=None,
      bias_constraint=None,
  ):
      warnings.warn(
          "ClusterGCN has been replaced by GCN with little functionality change (the GCN class removes the batch dimension in some cases)",
          DeprecationWarning,
          stacklevel=2,
      )
      super().__init__(
          layer_sizes=layer_sizes,
          generator=generator,
          bias=bias,
          dropout=dropout,
          activations=activations,
          kernel_initializer=kernel_initializer,
          kernel_regularizer=kernel_regularizer,
          kernel_constraint=kernel_constraint,
          bias_initializer=bias_initializer,
          bias_regularizer=bias_regularizer,
          bias_constraint=bias_constraint,
          # for compatibility
          squeeze_output_batch=False,
      )
  
file_path: stellargraph/stellargraph/layer/cluster_gcn.py
imports: from tensorflow.keras import backend
  from tensorflow.keras import activations, initializers, constraints, regularizers
  from tensorflow.keras.layers import Input, Layer, Lambda, Dropout, Reshape
  from .misc import deprecated_model_function, GatherIndices
  from ..mapper import ClusterNodeGenerator
  from .gcn import GraphConvolution, GCN
  import warnings
label_desc: Use image node_id 1 to create a new ClusterGCN object from inherited base classes: GCN with example: obj = ClusterGCN(layer_sizes, activations, generator, bias, dropout, kernel_initializer, kernel_regularizer, kernel_constraint, bias_initializer, bias_regularizer, bias_constraint)