class_docstr: Snake layer to learn periodic functions with the trainable `frequency` scalar.
  
  See [Neural Networks Fail to Learn Periodic Functions and How to Fix It](https://arxiv.org/abs/2006.08195).
  
  Args:
      frequency_initializer: Initializer for the `frequency` scalar.
code: def __init__(
      self, frequency_initializer: types.Initializer = "ones", **kwargs
  ):
      super().__init__(**kwargs)
      self.frequency_initializer = tf.keras.initializers.get(
          frequency_initializer
      )
      self.frequency = self.add_weight(
          initializer=frequency_initializer, trainable=True
      )
  
file_path: addons/tensorflow_addons/layers/snake.py
imports: import tensorflow
  from typeguard import typechecked
  from tensorflow_addons.activations.snake import snake
  from tensorflow_addons.utils import types
label_desc: Use image node_id 1 to create a new Snake object from inherited base classes: tf.keras.layers with example: obj = Snake(frequency_initializer)