transformers4rec.tf.tabular package

Submodules

transformers4rec.tf.tabular.aggregation module

class transformers4rec.tf.tabular.aggregation.ConcatFeatures(*args, **kwargs)[source]

Bases: transformers4rec.config.schema.SchemaMixin, keras.engine.base_layer.Layer, merlin_standard_lib.registry.RegistryMixin[TabularAggregation], abc.ABC

call(inputs: Dict[str, tensorflow.python.framework.ops.Tensor], **kwargs)tensorflow.python.framework.ops.Tensor[source]
compute_output_shape(input_shapes)[source]
get_config()[source]
class transformers4rec.tf.tabular.aggregation.StackFeatures(*args, **kwargs)[source]

Bases: transformers4rec.config.schema.SchemaMixin, keras.engine.base_layer.Layer, merlin_standard_lib.registry.RegistryMixin[TabularAggregation], abc.ABC

call(inputs: Dict[str, tensorflow.python.framework.ops.Tensor], **kwargs)tensorflow.python.framework.ops.Tensor[source]
compute_output_shape(input_shapes)[source]
get_config()[source]
class transformers4rec.tf.tabular.aggregation.ElementwiseFeatureAggregation(*args, **kwargs)[source]

Bases: transformers4rec.config.schema.SchemaMixin, keras.engine.base_layer.Layer, merlin_standard_lib.registry.RegistryMixin[TabularAggregation], abc.ABC

class transformers4rec.tf.tabular.aggregation.ElementwiseSum(*args, **kwargs)[source]

Bases: transformers4rec.config.schema.SchemaMixin, keras.engine.base_layer.Layer, merlin_standard_lib.registry.RegistryMixin[TabularAggregation], abc.ABC

call(inputs: Dict[str, tensorflow.python.framework.ops.Tensor], **kwargs)tensorflow.python.framework.ops.Tensor[source]
compute_output_shape(input_shape)[source]
class transformers4rec.tf.tabular.aggregation.ElementwiseSumItemMulti(*args, **kwargs)[source]

Bases: transformers4rec.config.schema.SchemaMixin, keras.engine.base_layer.Layer, merlin_standard_lib.registry.RegistryMixin[TabularAggregation], abc.ABC

call(inputs: Dict[str, tensorflow.python.framework.ops.Tensor], **kwargs)tensorflow.python.framework.ops.Tensor[source]
compute_output_shape(input_shape)[source]
get_config()[source]
REQUIRES_SCHEMA = True

transformers4rec.tf.tabular.tabular module

transformers4rec.tf.tabular.transformations module

class transformers4rec.tf.tabular.transformations.AsSparseFeatures(*args, **kwargs)[source]

Bases: transformers4rec.config.schema.SchemaMixin, keras.engine.base_layer.Layer, merlin_standard_lib.registry.RegistryMixin[TabularTransformation], abc.ABC

call(inputs: Dict[str, tensorflow.python.framework.ops.Tensor], **kwargs)Dict[str, tensorflow.python.framework.ops.Tensor][source]
compute_output_shape(input_shape)[source]
class transformers4rec.tf.tabular.transformations.AsDenseFeatures(*args, **kwargs)[source]

Bases: transformers4rec.config.schema.SchemaMixin, keras.engine.base_layer.Layer, merlin_standard_lib.registry.RegistryMixin[TabularTransformation], abc.ABC

call(inputs: Dict[str, tensorflow.python.framework.ops.Tensor], **kwargs)Dict[str, tensorflow.python.framework.ops.Tensor][source]
compute_output_shape(input_shape)[source]
class transformers4rec.tf.tabular.transformations.StochasticSwapNoise(*args, **kwargs)[source]

Bases: transformers4rec.config.schema.SchemaMixin, keras.engine.base_layer.Layer, merlin_standard_lib.registry.RegistryMixin[TabularTransformation], abc.ABC

Applies Stochastic replacement of sequence features

call(inputs: Union[tensorflow.python.framework.ops.Tensor, Dict[str, tensorflow.python.framework.ops.Tensor]], input_mask: Optional[tensorflow.python.framework.ops.Tensor] = None, training=True, **kwargs)Union[tensorflow.python.framework.ops.Tensor, Dict[str, tensorflow.python.framework.ops.Tensor]][source]
augment(input_tensor: tensorflow.python.framework.ops.Tensor, mask: Optional[tensorflow.python.framework.ops.Tensor], **kwargs)tensorflow.python.framework.ops.Tensor[source]
compute_output_shape(input_shape)[source]
get_config()[source]

Module contents