NVIDIA-Merlin / models

Merlin Models is a collection of deep learning recommender system model reference implementations
https://nvidia-merlin.github.io/models/main/index.html
Apache License 2.0
262 stars 50 forks source link

Create a PretrainedEmbeddings block and integrate it with InputBlockV2. #1068

Closed gabrielspmoreira closed 1 year ago

gabrielspmoreira commented 1 year ago

Prototype API

input_block = InputBlockV2(schema, 
                   categorical: Union[Tag,Block] = Tag.CATEGORICAL, 
                   continuous: Union[Tag,Block] = Tag.CONTINUOUS,  
                    pretrained_embeddings: Union[Tag,Block] = Tag.EMBEDDINGS, ...)

def PretrainedEmbeddings(schema, 
                                      projection: Optional[Union[int,dict,Block,Layer,Dict[str, Layer]]] = None, 
                                      normalization: Union[str, Layer] = None,
                                      sequence_combiner = "mean") -> ParallelBlock:

If PretrainedEmbeddings.projection is:

Starting point

Testing