lenskit.flexmf.FlexMFExplicitScorer#

class lenskit.flexmf.FlexMFExplicitScorer(config=None, **kwargs)#

Bases: lenskit.flexmf._base.FlexMFScorerBase

Explicit-feedback rating prediction with FlexMF. This realizes a biased matrix factorization model (similar to lenskit.als.BiasedMF) trained with PyTorch.

Stability:

Experimental

Parameters:
  • config (object | None)

  • kwargs (Any)

global_bias: float#
config: FlexMFExplicitConfig#

The component configuration object. Component classes that support configuration must redefine this attribute with their specific configuration class type, which can be a Python dataclass or a Pydantic model class.

create_trainer(data, options)#

Create a model trainer to train this model.

score_items(users, items)#

Score for users and items, after resolivng them and limiting to known users and items.

Parameters:
Return type:

torch.Tensor