lenskit.hpf.HPFConfig#

class lenskit.hpf.HPFConfig#

Bases: pydantic.BaseModel

Configuration class for HPFScorer.

Only a couple of configuration options are directly defined here. Other options are taken from the hpfrec.HPF constructor’s keyword arguments.

__pydantic_extra__: dict[str, pydantic.JsonValue]#
count_attribute: str | None = 'count'#

The attribute from which to get user-item interaction counts. If None, uses indicator variables as a count of 1.

embedding_size: int#

The dimension of user and item embeddings (number of latent features to learn).