osl_dynamics.models.base.RNNConfig#

class osl_dynamics.models.base.RNNConfig#

Settings for the inference and model networks.

Parameters:
inference_rnn_typestr, optional

RNN for the inference network. Either 'gru' or 'lstm'.

inference_n_layersint, optional

Number of layers in the inference network.

inference_n_unitsint

Number of units in each layer of the inference network.

inference_normalizationstr, optional

Normalization in the inference network. Either None, 'batch' or 'layer'.

inference_activationstr, optional

Activation in the inference network, after normalization and before dropout, e.g. 'relu' or 'elu'.

inference_dropoutfloat, optional

Dropout rate in the inference network.

inference_regularizerstr, optional

Keras regularizer for the inference network.

model_rnn_typestr, optional

RNN for the model network. Either 'gru' or 'lstm'.

model_n_layersint, optional

Number of layers in the model network.

model_n_unitsint

Number of units in each layer of the model network.

model_normalizationstr, optional

Normalization in the model network. Either None, 'batch' or 'layer'.

model_activationstr, optional

Activation in the model network, after normalization and before dropout.

model_dropoutfloat, optional

Dropout rate in the model network.

model_regularizerstr, optional

Keras regularizer for the model network.