lenskit.basic.candidates.TrainingItemsCandidateConfig ===================================================== .. py:class:: lenskit.basic.candidates.TrainingItemsCandidateConfig Configuration for :class:`TrainingItemsCandidateSelector`. .. py:attribute:: exclude :type: None | Literal['query', 'all', 'history', 'session', 'context'] | collections.abc.Sequence[Literal['history', 'session', 'context']] :value: 'query' Specify the items from the query to exclude from the candidates. ``None`` Exclude no items from the request. ``"query"`` Excludes the *query items* (:attr:`RecQuery.query_items`) from the request. This is the default. ``"all"`` Exclude all mentioned items from the request. ``"history"``, ``"session"``, ``"context"`` Exclude the specified items from the request.