lenskit.training.Trainable#
- class lenskit.training.Trainable#
Bases:
ProtocolInterface for components and objects that can learn parameters from training data. It supports training and checking if a component has already been trained. This protocol only captures the concept of trainability; most trainable components should have other properties and behaviors as well:
They are usually components (
Component), with an appropriate__call__method.They should be pickleable.
- Stability:
- Full (see Stability Levels).
- abstractmethod train(data, options)#
Train the model to learn its parameters from a training dataset.
- Parameters:
data (lenskit.data.Dataset) – The training dataset.
options (TrainingOptions) – The training options.
- Return type:
None