torchfm.model¶
torchfm.model.afi¶
torchfm.model.afm¶
-
class
torchfm.model.afm.
AttentionalFactorizationMachineModel
(field_dims, embed_dim, attn_size, dropouts)[source]¶ A pytorch implementation of Attentional Factorization Machine.
- Reference:
J Xiao, et al. Attentional Factorization Machines: Learning the Weight of Feature Interactions via Attention Networks, 2017.
torchfm.model.dcn¶
torchfm.model.dfm¶
torchfm.model.ffm¶
torchfm.model.fm¶
torchfm.model.fnfm¶
torchfm.model.fnn¶
torchfm.model.lr¶
torchfm.model.nfm¶
torchfm.model.pnn¶
torchfm.model.wd¶
torchfm.model.xdfm¶
-
class
torchfm.model.xdfm.
ExtremeDeepFactorizationMachineModel
(field_dims, embed_dim, mlp_dims, dropout, cross_layer_sizes, split_half=True)[source]¶ A pytorch implementation of xDeepFM.
- Reference:
J Lian, et al. xDeepFM: Combining Explicit and Implicit Feature Interactions for Recommender Systems, 2018.