What configuration settings are recommended for this distribution?

17 views
Skip to first unread message

Milind Dalvi

unread,
May 11, 2022, 10:24:34 AM5/11/22
to TensorFlow Probability
I am fitting a regression model on following distribution where my values are concentrated at the low and high end and the rest are spread in the middle, (see diagram below)

I know I need two Categorical distributions and one Uniform distribution for the middle data, but I don't know how to combine these? 

Any help on the same is appreciated.

Screenshot 2022-05-11 195224.jpg

Milind Dalvi

unread,
May 11, 2022, 12:37:41 PM5/11/22
to TensorFlow Probability, Milind Dalvi

I made it, 

    dist = tfd.Mixture(
        cat=tfd.Categorical(probs=[0.44, 0.42, 0.14]),
        components=[
        tfd.Deterministic(-1.),
        tfd.MixtureSameFamily(
            mixture_distribution=tfd.Categorical(probs=[0.2,0.2,0.2,0.2,0.2]),
            components_distribution=tfd.Normal(
                loc=[-0.9, -0.5, 0., 0.5, 0.9],
                scale=[0.1, 0.1, 0.1, 0.1, 0.1]
            )
        ),
        tfd.Deterministic(1.)
    ])
Reply all
Reply to author
Forward
0 new messages