In this way we can model the probability of a class as Bernoulli's distribution which makes the probability of each class c j independent from the other class probabilities.
we use a Softmax dense layer for multi-class and Sigmoid dense layer for multilabel classification to get the probabilities associated with each target class.