

def __repr__(self):
    var_card = ', '.join(['{var}:{card}'.format(var=var, card=card) for (var, card) in zip(self.variables, self.cardinality)])
    return '<Joint Distribution representing P({var_card}) at {address}>'.format(address=hex(id(self)), var_card=var_card)

dataset/ETHPy150Open pgmpy/pgmpy/pgmpy/factors/JointProbabilityDistribution.py JointProbabilityDistribution.__repr__/original