Skip to content

Commit 51447cd

Browse files
committed
update stub file
1 parent 7da869c commit 51447cd

File tree

1 file changed

+5
-32
lines changed

1 file changed

+5
-32
lines changed

cliquepicking_python/cliquepicking.pyi

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -14,38 +14,6 @@ def mec_size(cpdag: List[Tuple[int, int]]) -> int:
1414
"""
1515
...
1616

17-
def mec_sample_dags(
18-
cpdag: List[Tuple[int, int]], k: int
19-
) -> List[List[Tuple[int, int]]]:
20-
"""
21-
Sample k DAGs uniformly from the Markov equivalence class represented by the CPDAG.
22-
23-
Parameters
24-
-----------
25-
cpdag: A list of tuples representing the edges of the CPDAG, where each tuple is a pair of integers (vertex1, vertex2). Undirected edges are encoded by including both (a, b) and (b, a).
26-
k: The number of DAGs to sample.
27-
28-
Returns
29-
-------
30-
A list of DAGs, where each DAG is represented as a list of tuples (edges).
31-
"""
32-
...
33-
34-
def mec_sample_orders(cpdag: List[Tuple[int, int]], k: int) -> List[List[int]]:
35-
"""
36-
Sample k DAGs (represented by a topological order) uniformly from the Markov equivalence class represented by the CPDAG.
37-
38-
Parameters
39-
-----------
40-
cpdag: A list of tuples representing the edges of the CPDAG, where each tuple is a pair of integers (vertex1, vertex2). Undirected edges are encoded by including both (a, b) and (b, a).
41-
k: The number of DAGs to sample.
42-
43-
Returns
44-
-------
45-
A list of topological orders, where each topological order is represented as a list of integers (vertex indices).
46-
"""
47-
...
48-
4917
def mec_list_dags(cpdag: List[Tuple[int, int]]) -> List[List[Tuple[int, int]]]:
5018
"""
5119
List all DAGs in the Markov equivalence class represented by the CPDAG.
@@ -73,3 +41,8 @@ def mec_list_orders(cpdag: List[Tuple[int, int]]) -> List[List[int]]:
7341
A list of topological orders, where each topological order is represented as a list of integers (vertex indices).
7442
"""
7543
...
44+
45+
class MecSampler:
46+
def __init__(self, cpdag: List[Tuple[int, int]]) -> None: ...
47+
def sample_dag(self) -> List[Tuple[int, int]]: ...
48+
def sample_order(self) -> List[int]: ...

0 commit comments

Comments
 (0)