def all_info_measures(vars): """ """ for stuff in islice(powerset(vars), 1, None): others = set(vars) - set(stuff) for part in partitions(stuff, tuples=True): for cond in powerset(others): yield (part, cond)
def all_info_measures(vars): """ """ for stuff in islice(powerset(vars), 1, None): others = set(vars) - set(stuff) for part in partitions(stuff, tuples=True): for cond in powerset(others): yield (part , cond)