*Incremental Collaborative Filtering* algorithms.
Step Base¶
This class defines the interface that every Step
module should implement. Namely, each class should implement five methods:
batch_fit
: To support batch trainingstep
: To support incremental learningpredict
: To offer recommendationssave
: To save the model parametersload
: To load the model parameters
Step¶
The step class implements the basic Incremental Collaborative Filtering recommender system.
Arguments:
- model (torch.nn.Module): The neural network architecture
- objective (Callable): The objective function
- optimizer (Callable): The method used to optimize the objective function. Usually a
torch.optim
loss function - conf_func (Callable): A method that converts implicit ratings to confidence scores
- device (str): Either
cpu
orgpu