class_docstr: Factorization Machines base class.
docstr: Initializes latent weights dict.
docstr_tok: ["Initializes","latent","weights","dict","."]
code: def _init_latents(self) -> collections.defaultdict:
      """Initializes latent weights dict."""
  
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 2 for calling the BaseFM obj's underlying member method code with example usage: obj._init_latents() without return types