lenskit.graphs.lightgcn.LightGCNScorer ====================================== .. py:class:: lenskit.graphs.lightgcn.LightGCNScorer(config = None, **kwargs) Bases: :py:obj:`lenskit.training.UsesTrainer`, :py:obj:`lenskit.pipeline.components.Component`\ [\ :py:obj:`lenskit.data.ItemList`\ ] Scorer using :class:`LightGCN` :cite:p:`heLightGCNSimplifyingPowering2020`. :Stability: Experimental .. py:attribute:: config :type: LightGCNConfig 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. .. py:attribute:: users :type: lenskit.data.Vocabulary .. py:attribute:: items :type: lenskit.data.Vocabulary .. py:attribute:: model :type: torch_geometric.nn.LightGCN .. py:method:: to(device) Move the model to a different device. .. py:method:: __call__(query, items) Generate item scores for a user. Note that user and items are both user and item IDs, not positions. .. py:method:: create_trainer(data, options) Create a model trainer to train this model.