docstr: Recommended embedding sizes.
docstr_tok: ["Recommended","embedding","sizes","."]
code: def embedding_sizes(self) -> list:
      """Recommended embedding sizes."""
  
      # https://developers.googleblog.com/2017/11/introducing-tensorflow-feature-columns.html
      # The following "formula" provides a general rule of thumb about the number of embedding dimensions:
      # embedding_dimensions =  number_of_categories**0.25
      emb_dims = [max(int(n**0.25), 16) for n in self.cat_dims]
      return list(zip(self.cat_dims, emb_dims))
  
file_path: lightning-flash/src/flash/tabular/data.py
imports: from typing import Any, Dict, List, Optional
  from flash.core.data.data_module import DataModule
  from flash.core.data.io.input_transform import InputTransform
  from flash.core.data.io.output_transform import OutputTransform
label_desc: Use image node_id 7 for calling the TabularData obj's underlying member method code with example usage: obj.embedding_sizes() and returns: list