tempor.methods.constants module

Common constants for methods.

class tempor.methods.constants.Seq2seqParams(encoder_rnn_type: str = 'LSTM', encoder_hidden_size: int = 100, encoder_num_layers: int = 1, encoder_bias: bool = True, encoder_dropout: float = 0.0, encoder_bidirectional: bool = False, encoder_nonlinearity: Union[str, NoneType] = None, encoder_proj_size: Union[int, NoneType] = None, decoder_rnn_type: str = 'LSTM', decoder_hidden_size: int = 100, decoder_num_layers: int = 1, decoder_bias: bool = True, decoder_dropout: float = 0.0, decoder_bidirectional: bool = False, decoder_nonlinearity: Union[str, NoneType] = None, decoder_proj_size: Union[int, NoneType] = None, adapter_hidden_dims: List[int] = <factory>, adapter_out_activation: Union[str, NoneType] = 'Tanh', predictor_hidden_dims: List[int] = <factory>, predictor_out_activation: Union[str, NoneType] = None, max_len: Union[int, NoneType] = None, optimizer_str: str = 'Adam', optimizer_kwargs: Dict[str, Any] = <factory>, batch_size: int = 32, epochs: int = 100, padding_indicator: float = -999.0)[source]

Bases: object

encoder_rnn_type : str = 'LSTM'

"LSTM", "GRU", "RNN".

Type:

Encoder RNN type. Available options

encoder_hidden_size : int = 100

Encoder hidden size.

encoder_num_layers : int = 1

Encoder number of layers.

encoder_bias : bool = True

Encoder bias enabled/disabled.

encoder_dropout : float = 0.0

Encoder dropout values (0.0 to 1.0)

encoder_bidirectional : bool = False

Encoder bidirectional enabled/disabled.

encoder_nonlinearity : str | None = None

Encoder nonlinearity.

encoder_proj_size : int | None = None

Encoder projection size.

decoder_rnn_type : str = 'LSTM'

"LSTM", "GRU", "RNN".

Type:

Decoder RNN type. Available options

decoder_hidden_size : int = 100

Decoder hidden size.

decoder_num_layers : int = 1

Decoder number of layers.

decoder_bias : bool = True

Decoder bias enabled/disabled.

decoder_dropout : float = 0.0

Decoder dropout values (0.0 to 1.0)

decoder_bidirectional : bool = False

Decoder bidirectional enabled/disabled.

decoder_nonlinearity : str | None = None

Decoder nonlinearity.

decoder_proj_size : int | None = None

Decoder projection size.

adapter_hidden_dims : list[int]

Adapter hidden dimensions, as a list of integers corresponding to different layers.

adapter_out_activation : str | None = 'Tanh'

Adapter output activation function.

predictor_hidden_dims : list[int]

Predictor hidden dimensions, as a list of integers corresponding to different layers.

predictor_out_activation : str | None = None

Predictor output activation function.

max_len : int | None = None

Maximum length of the input sequence.

optimizer_str : str = 'Adam'

Optimizer type.

optimizer_kwargs : dict[str, Any]

Optimizer kwargs.

batch_size : int = 32

Batch size.

epochs : int = 100

Number of epochs.

padding_indicator : float = -999.0

Padding indicator value.