lenskit.basic.candidates.TrainingItemsCandidateConfig#

class lenskit.basic.candidates.TrainingItemsCandidateConfig#

Configuration for TrainingItemsCandidateSelector.

exclude: None | Literal['query', 'all', 'history', 'session', 'context'] | collections.abc.Sequence[Literal['history', 'session', 'context']] = 'query'#

Specify the items from the query to exclude from the candidates.

None

Exclude no items from the request.

"query"

Excludes the query items (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.