Quant, Finance, Machine Learning, AI, TensorFlow.
tf.Variable(tf.nn.softmax(p), name = 'prob1') cat_dist = tfd.Categorical(probs = p1) #mixture model components = [tfd.Normal(mu1, scal1), tfd.Normal(mu2, scal2)] mixture_model = tfd.Mixture(cat=cat_dist, components=components) #negative log likelihood def negative_log_likelihood(data): return