class_docstr: Base dot model for collaborative filtering.
class_docstr_tok: ["Base","dot","model","for","collaborative","filtering","."]
code: def __init__(self, n_factors, n_users, n_items, y_range=None):
      self.y_range = y_range
      (self.u_weight, self.i_weight, self.u_bias, self.i_bias) = [
          Embedding(*o)
          for o in [
              (n_users, n_factors),
              (n_items, n_factors),
              (n_users, 1),
              (n_items, 1),
          ]
      ]
  
file_path: fastai/fastai/collab.py
imports: from __future__ import annotations
  from .tabular.all import *
label_desc: Use image node_id 1 to create a new EmbeddingDotBias object from inherited base classes: Module with example: obj = EmbeddingDotBias(n_factors, n_users, n_items, y_range)