osl_dynamics.inference.layers#

Custom Tensorflow layers.

Attributes#

tfb

Classes#

TFConcatLayer

Wrapper for tf.concat.

TFMatMulLayer

Wrapper for tf.matmul.

TFRangeLayer

Wrapper for tf.range.

TFZerosLayer

Wrapper for tf.zeros.

TFBroadcastToLayer

Wrapper for tf.broadcast_to.

TFGatherLayer

Wrapper for tf.gather.

TFAddLayer

Wrapper for tf.add.

TFConstantLayer

Wrapper for tf.constant.

DummyLayer

Returns the inputs without modification.

InverseCholeskyLayer

Layer for getting Cholesky vectors from positive definite symmetric matrices.

BatchSizeLayer

Layer for getting the batch size.

SampleGammaDistributionLayer

Layer for sampling from a Gamma distribution.

SampleNormalDistributionLayer

Layer for sampling from a Normal distribution.

SampleGumbelSoftmaxDistributionLayer

Layer for sampling from a Gumbel-Softmax distribution.

SampleOneHotCategoricalDistributionLayer

Layer for sampling from a Categorical distribution.

SoftmaxLayer

Layer for applying a softmax activation function.

LearnableTensorLayer

Layer to learn a tensor.

VectorsLayer

Layer to learn a set of vectors.

CovarianceMatricesLayer

Layer to learn a set of covariance matrices.

CorrelationMatricesLayer

Layer to learn a set of correlation matrices.

DiagonalMatricesLayer

Layer to learn a set of diagonal matrices.

OscillatorCovarianceMatricesLayer

Layer to learn a set of oscillator covariances.

MatrixLayer

Layer to learn a matrix.

MixVectorsLayer

Mix a set of vectors.

MixMatricesLayer

Layer to mix matrices.

LogLikelihoodLossLayer

Layer to calculate the negative log-likelihood.

KLDivergenceLayer

Layer to calculate a KL divergence between two Normal distributions.

KLLossLayer

Layer to calculate the KL loss.

InferenceRNNLayer

RNN inference network.

ModelRNNLayer

RNN generative model.

CategoricalKLDivergenceLayer

Layer to calculate a KL divergence between two categorical distributions.

CategoricalLogLikelihoodLossLayer

Layer to calculate the log-likelihood loss assuming a categorical model.

ConcatEmbeddingsLayer

Layer for getting the concatenated embeddings.

SessionParamLayer

Layer for getting the array specific parameters.

MixSessionSpecificParametersLayer

Class for mixing means and covariances.

GammaExponentialKLDivergenceLayer

Gamma exponential KL diverengnce layer.

MultiLayerPerceptronLayer

Multi-Layer Perceptron layer.

HiddenMarkovStateInferenceLayer

Hidden Markov state inference layer.

SeparateLogLikelihoodLayer

Layer to calculate the log-likelihood for different HMM states.

SeparatePoissonLogLikelihoodLayer

Layer to calculate the log-likelihood for different HMM-Poisson states.

SumLogLikelihoodLossLayer

Layer for summing log-likelihoods.

EmbeddingLayer

Layer for embeddings.

DirichletConcentrationLayer

WindowedDirichletLogLikelihoodLayer

Functions#

add_epsilon(A, epsilon[, diag])

Add epsilon.

NormalizationLayer(norm_type, *args, **kwargs)

Returns a normalization layer.

RNNLayer(rnn_type, *args, **kwargs)

Returns a Recurrent Neural Network (RNN) layer.

Module Contents#

osl_dynamics.inference.layers.tfb[source]#