Skip to content

Tutorial Overview

This section provides practical tutorials for Torch-RecHub in different recommendation scenarios to help developers get started quickly.

Code Resources: The project provides interactive Jupyter Notebook tutorials (in the tutorials/ directory) and complete Python example scripts (in the examples/ directory) that can be used alongside this documentation.

Tutorial List

TutorialDescriptionLink
CTR PredictionClick-through rate prediction model trainingCTR Prediction Tutorial
Matching ModelsTwo-tower matching model trainingMatching Models Tutorial
Complete PipelineEnd-to-end recommendation systemComplete Pipeline Tutorial

Quick Navigation

CTR Prediction (Ranking)

Learn how to use DeepFM, DCN, and other models for click-through rate prediction.

python
from torch_rechub.models.ranking import DeepFM
from torch_rechub.trainers import CTRTrainer

model = DeepFM(deep_features, fm_features, mlp_params)
trainer = CTRTrainer(model)
trainer.fit(train_dl, val_dl)

View Full Tutorial →

Matching Models

Learn how to use DSSM, MIND, and other models for vector retrieval.

python
from torch_rechub.models.matching import DSSM
from torch_rechub.trainers import MatchTrainer

model = DSSM(user_features, item_features)
trainer = MatchTrainer(model)
trainer.fit(train_dl)

View Full Tutorial →