def __init__(self, cfdist, probdist_factory,
                 *factory_args, **factory_kw_args):
        self._probdist_factory = probdist_factory
        self._factory_args = factory_args
        self._factory_kw_args = factory_kw_args

        for condition in cfdist:
            self[condition] = probdist_factory(cfdist[condition],
                                               *factory_args, **factory_kw_args)
Construct a new conditional probability distribution, based on
dataset/ETHPy150Open nltk/nltk/nltk/probability.py/ConditionalProbDist.__init__