amidst/toolbox

The probability of certain events should be 0

gowthamnatarajan opened this issue · 6 comments

During initialization the probability is set to random / uniform. The problem with this is that even though certain events can never occur and never occurs in the data, their probability is non-zero in the model. An option to set all probabilities should be set to 0 during initialization should be available.

Zero probabilities are quite hard in probabilistic modelling. If one state of a binary variable has zero probability, maybe the binary variable itself does not make sense, because there is no stochastic process we need to model.

But, you can circumvent that by "editing" the learnt model and hard-coding the zero probs.

Ok, Thanks

After initializing the network, can I just make all the probabilities to be 0? And then use MLE to train the model?

I want to initialize all multinomial distributions to 0. Any easy way I can do that?

No, simply because a multinomial with all probabilities equal to zero is not a valid distribution.

But you can use the method "setLaplace(false)" of the ParallelMaximumLikelihood class to deactivate the Laplace correction. So if one state is not observed, a zero probability will be assigned.

It worked. Thanks a lot :).