class_docstr: Basic model for tabular data.
class_docstr_tok: ["Basic","model","for","tabular","data","."]
code: def forward(self, x_cat, x_cont=None):
      if self.n_emb != 0:
          x = [e(x_cat[:, i]) for i, e in enumerate(self.embeds)]
          x = torch.cat(x, 1)
          x = self.emb_drop(x)
      if self.n_cont != 0:
          if self.bn_cont is not None:
              x_cont = self.bn_cont(x_cont)
          x = torch.cat([x, x_cont], 1) if self.n_emb != 0 else x_cont
      return self.layers(x)
  
file_path: fastai/fastai/tabular/model.py
imports: from __future__ import annotations
  from ..torch_basics import *
  from .core import *
label_desc: Use image node_id 2 for calling the TabularModel obj's underlying member method code with example usage: obj.forward(x_cat, x_cont) and returns: self