The most core code is class BasicCL4CTR in the BasicLayer.py, in which three SSL losses(L_cl, L_ali and L_uni) are computed to regularize feature representations.
CL4CTR is a model-agnostic and simple framework, which can be easily applied to existing CTR models, such as FM, DeepFM.
All four datasets are publicly available.