docstr: Use random word embeddings for initialization.
docstr_tok: ["Use","random","word","embeddings","for","initialization","."]
code: def randomize_embeddings(self, n_dims, scale=0.08):
      """Use random word embeddings for initialization."""
      vocab_size = self.vocab_size
      shape = (vocab_size, n_dims)
      self.embeddings = np.array(
          np.random.uniform(low=-scale, high=scale, size=shape),
          dtype=np.float32,
      )
      self.embeddings[self.get_symbol_idx(self.pad_token)] = np.zeros(
          n_dims
      )
  
imports: from operator import itemgetter
  import numpy
label_desc: Use image node_id 10 for calling the Vocab obj's underlying member method code with example usage: obj.randomize_embeddings(n_dims, scale) without return types