LinearDropout¶
- class LinearDropout(entity_embedding_dim, literal_embedding_dim, input_dropout=0.0, activation=None, activation_kwargs=None)[source]¶
Bases:
torch.nn.modules.container.SequentialA sequential module that has a linear layer, dropout later, and optional activation layer.
Instantiate the
torch.nn.Sequential.- Parameters
entity_embedding_dim (
int) – The dimension of the entity representations to which literals are concatenatedliteral_embedding_dim (
int) – The dimension of the literals that are concatenatedinput_dropout (
float) – The dropout probability of an element to be zeroed.activation (
Union[str,Module,Type[Module],None]) – An optional, pre-instantiated activation module, liketorch.nn.Tanh.