class_docstr: Higher-Order Factorization Machine base class.
class_docstr_tok: ["Higher-Order","Factorization","Machine","base","class","."]
code: def _interaction_coefficient(self, combination):
      return sum(
          functools.reduce(
              lambda x, y: np.multiply(x, y),
              (self.latents[j][len(combination)] for j in combination),
          )
      )
  
imports: from __future__ import annotations
  import collections
  import functools
  import itertools
  import numpy
  from river import base, optim, utils
  from .base import BaseFM
label_desc: Use image node_id 6 for calling the HOFM obj's underlying member method code with example usage: obj._interaction_coefficient(combination) and returns: sum