This file contains 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 keras.backend as K | |
import numpy as np | |
def gaussian_nll(ytrue, ypreds): | |
"""Keras implmementation of multivariate Gaussian negative loglikelihood loss function. | |
This implementation implies diagonal covariance matrix. | |
Parameters | |
---------- |