osl_dynamics.inference.layers#
Custom Tensorflow layers.
Attributes#
Classes#
Wrapper for tf.concat. |
|
Wrapper for tf.matmul. |
|
Wrapper for tf.range. |
|
Wrapper for tf.zeros. |
|
Wrapper for tf.broadcast_to. |
|
Wrapper for tf.gather. |
|
Wrapper for tf.add. |
|
Wrapper for tf.constant. |
|
Returns the inputs without modification. |
|
Layer for getting Cholesky vectors from positive definite symmetric matrices. |
|
Layer for getting the batch size. |
|
Layer for sampling from a Gamma distribution. |
|
Layer for sampling from a Normal distribution. |
|
Layer for sampling from a Gumbel-Softmax distribution. |
|
Layer for sampling from a Categorical distribution. |
|
Layer for applying a softmax activation function. |
|
Layer to learn a tensor. |
|
Layer to learn a set of vectors. |
|
Layer to learn a set of covariance matrices. |
|
Layer to learn a set of correlation matrices. |
|
Layer to learn a set of diagonal matrices. |
|
Layer to learn a set of oscillator covariances. |
|
Layer to learn a matrix. |
|
Mix a set of vectors. |
|
Layer to mix matrices. |
|
Layer to calculate the negative log-likelihood. |
|
Layer to calculate a KL divergence between two Normal distributions. |
|
Layer to calculate the KL loss. |
|
RNN inference network. |
|
RNN generative model. |
|
Layer to calculate a KL divergence between two categorical distributions. |
|
Layer to calculate the log-likelihood loss assuming a categorical model. |
|
Layer for getting the concatenated embeddings. |
|
Layer for getting the array specific parameters. |
|
Class for mixing means and covariances. |
|
Gamma exponential KL diverengnce layer. |
|
Multi-Layer Perceptron layer. |
|
Hidden Markov state inference layer. |
|
Layer to calculate the log-likelihood for different HMM states. |
|
Layer to calculate the log-likelihood for different HMM-Poisson states. |
|
Layer for summing log-likelihoods. |
|
Layer for embeddings. |
|
Functions#
|
Add epsilon. |
|
Returns a normalization layer. |
|
Returns a Recurrent Neural Network (RNN) layer. |