Skip to content

Latest commit

 

History

History
107 lines (61 loc) · 6.2 KB

File metadata and controls

107 lines (61 loc) · 6.2 KB
graph LR
    Model_Base_Class["Model Base Class"]
    Concrete_Recommendation_Models["Concrete Recommendation Models"]
    Input_Layer["Input Layer"]
    Sequential_Input_Layer["Sequential Input Layer"]
    Deep_Neural_Network_Layer["Deep Neural Network Layer"]
    Multi_Head_Attention_Layer["Multi-Head Attention Layer"]
    Multi_Head_Cross_Attention_Layer["Multi-Head Cross Attention Layer"]
    Backbone_Layer["Backbone Layer"]
    Concrete_Recommendation_Models -- "inherits from" --> Model_Base_Class
    Concrete_Recommendation_Models -- "composes" --> Input_Layer
    Concrete_Recommendation_Models -- "composes" --> Sequential_Input_Layer
    Concrete_Recommendation_Models -- "composes" --> Deep_Neural_Network_Layer
    Concrete_Recommendation_Models -- "composes" --> Multi_Head_Attention_Layer
    Concrete_Recommendation_Models -- "composes" --> Multi_Head_Cross_Attention_Layer
    Concrete_Recommendation_Models -- "composes" --> Backbone_Layer
    Backbone_Layer -- "composes" --> Deep_Neural_Network_Layer
    Backbone_Layer -- "composes" --> Multi_Head_Attention_Layer
Loading

CodeBoardingDemoContact

Details

The Model Library (Model Zoo) subsystem is primarily defined by the easy_rec.python.model and easy_rec.python.layers packages, containing core model definitions, abstract base models, concrete recommendation model implementations, and reusable neural network layers.

Model Base Class

Serves as the foundational abstract class for all recommendation models, providing common functionalities and a standardized interface. It defines the contract for how models are built and interact within the EasyRec framework.

Related Classes/Methods:

Concrete Recommendation Models

These are the concrete implementations of various deep learning recommendation model architectures (e.g., DCN, ESMM, MIND, PLE). They extend the Model Base Class and compose various layers to form complete recommendation models.

Related Classes/Methods:

Input Layer

Responsible for processing raw input features and transforming them into appropriate tensor formats for model consumption. It handles the initial stage of data preparation within the model's graph.

Related Classes/Methods:

Sequential Input Layer

Specifically designed for processing sequential input features, transforming them into suitable tensor formats for models that handle sequence data (e.g., user behavior sequences).

Related Classes/Methods:

Deep Neural Network Layer

A generic Deep Neural Network (DNN) layer, serving as a fundamental and widely used building block for creating dense representations and non-linear transformations within models.

Related Classes/Methods:

Multi-Head Attention Layer

Implements the multi-head attention mechanism, crucial for models processing sequential data or capturing complex relationships between different parts of the input, often used in transformer-based architectures.

Related Classes/Methods:

Multi-Head Cross Attention Layer

Implements a multi-head cross-attention mechanism, enabling a model to attend to different parts of a second sequence or set of features, facilitating interaction between distinct input modalities or representations.

Related Classes/Methods:

Backbone Layer

Provides a flexible mechanism to define and integrate various backbone network architectures into the recommendation models. It allows for modularity in constructing the main feature processing part of a model.

Related Classes/Methods: