Skip to content

Commit e923bcf

Browse files
committed
Removed dangling PowerSet
1 parent c52d741 commit e923bcf

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pymc3/model_graph.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import itertools
21
from collections import deque
32
from typing import Iterator, Optional, MutableSet
43

@@ -14,17 +13,6 @@
1413
RV = Tensor
1514

1615

17-
def powerset(iterable):
18-
"""All *nonempty* subsets of an iterable.
19-
20-
From itertools docs.
21-
22-
powerset([1,2,3]) --> (1,) (2,) (3,) (1,2) (1,3) (2,3) (1,2,3)
23-
"""
24-
s = list(iterable)
25-
return itertools.chain.from_iterable(itertools.combinations(s, r) for r in range(1, len(s)+1))
26-
27-
2816
class ModelGraph:
2917
def __init__(self, model):
3018
self.model = model

0 commit comments

Comments
 (0)