This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | """Laplace approximations.""" | |
| import tensorflow as tf | |
| import tensorflow_probability as tfp | |
| tfd = tfp.distributions | |
| tfl = tf.linalg | |
| tfb = tfp.bijectors | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import tensorflow as tf | |
| import tensorflow_probability as tfp | |
| tfd = tfp.distributions | |
| tfl = tf.linalg | |
| def split(tensor, batch_shape, event_shapes): | |
| """Split up a tensor into a list of tensors""" | |
| size_splits = [y.num_elements() for y in event_shapes] | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import tensorflow as tf | |
| import tensorflow_probability as tfp | |
| import numpy as np | |
| import pandas as pd | |
| print(tf.__version__) | |
| # '2.5.0-dev20201112' | |
| print(tfp.__version__) | |
| # '0.12.0-dev20201112' |