def __init__(self, continuous_features: Union[(List[str], Schema, Optional[TabularBlock])], embedding_layer: EmbeddingFeatures, bottom_mlp: BlockType, top_mlp: Optional[BlockType]=None, interaction_layer: Optional[tf.keras.layers.Layer]=None, **kwargs):
    super().__init__(**kwargs)
    _continuous_features: Optional[TabularBlock]
    if isinstance(continuous_features, Schema):
        _continuous_features = cast(Optional[TabularBlock], ContinuousFeatures.from_schema(cast(Schema, continuous_features), aggregation='concat'))
    if isinstance(continuous_features, list):
        _continuous_features = ContinuousFeatures.from_features(continuous_features, aggregation='concat')
    else:
        _continuous_features = cast(Optional[TabularBlock], continuous_features)
    if _continuous_features:
        continuous_embedding = ((_continuous_features >> bottom_mlp) >> ExpandDimsAndToTabular())
        continuous_embedding.block_name = 'ContinuousEmbedding'
        self.stack_features = embedding_layer.merge(continuous_embedding, aggregation='stack')
    else:
        embedding_layer.set_aggregation('stack')
        self.stack_features = embedding_layer
    from ..layers import DotProductInteraction
    self.interaction_layer = (interaction_layer or DotProductInteraction())
    self.top_mlp = top_mlp
def __init__(self, continuous_features: Union[(List[str], Schema, Optional[TabularBlock])], embedding_layer: EmbeddingFeatures, bottom_mlp: BlockType, top_mlp: Optional[BlockType]=None, interaction_layer: Optional[tf.keras.layers.Layer]=None, **kwargs):
    super().__init__(**kwargs)
    _continuous_features: Optional[TabularBlock]
    if isinstance(continuous_features, Schema):
        _continuous_features = cast(Optional[TabularBlock], ContinuousFeatures.from_schema(cast(Schema, continuous_features), aggregation='concat'))
    if isinstance(continuous_features, list):
        _continuous_features = ContinuousFeatures.from_features(continuous_features, aggregation='concat')
    else:
        _continuous_features = cast(Optional[TabularBlock], continuous_features)
    if _continuous_features:
        continuous_embedding = ((_continuous_features >> bottom_mlp) >> ExpandDimsAndToTabular())
        continuous_embedding.block_name = 'ContinuousEmbedding'
        self.stack_features = embedding_layer.merge(continuous_embedding, aggregation='stack')
    else:
        embedding_layer.set_aggregation('stack')
        self.stack_features = embedding_layer
    from ..layers import DotProductInteraction
    self.interaction_layer = (interaction_layer or DotProductInteraction())
    self.top_mlp = top_mlp