lenskit.sklearn.nmf.NMFConfig ============================= .. py:class:: lenskit.sklearn.nmf.NMFConfig Bases: :py:obj:`lenskit.config.common.EmbeddingSizeMixin`, :py:obj:`pydantic.BaseModel` Configuration for :class:`NMFScorer`. See the documentation for :func:`sklearn.decomposition.non_negative_factorization` for the configuration options. .. py:attribute:: beta_loss :type: Literal['frobenius', 'kullback-leibler', 'itakura-saito'] :value: 'frobenius' .. py:attribute:: max_iter :type: pydantic.PositiveInt .. py:attribute:: embedding_size :type: pydantic.PositiveInt | None The dimension of user and item embeddings (number of latent features to learn). .. py:attribute:: alpha_W :type: float :value: 0.0 .. py:attribute:: alpha_H :type: float | Literal['same'] :value: 'same' .. py:attribute:: l1_ratio :type: float :value: 0.0