class_docstr: Factorization Machines base class.
code: def _raw_dot(self, x):
      # Start with the intercept
      y_pred = self.intercept
  
      # Add the unary interactions
      y_pred += utils.math.dot(x, self.weights)
  
      # Add greater than unary interactions
      y_pred += self._calculate_interactions(x)
  
      return y_pred
  
imports: from __future__ import annotations
  import abc
  import collections
  import numbers
  from collections.abc import Iterable
  import numpy
  from river import optim, utils
label_desc: Use image node_id 6 for calling the BaseFM obj's underlying member method code with example usage: obj._raw_dot(x) and returns: y_pred