Skip to content

Commit 52777ad

Browse files
Add MultiGroupRESIT
1 parent 0159f60 commit 52777ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lingam/multi_group_resit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"""
55

66
import numbers
7+
import copy
78

89
import numpy as np
910
from sklearn.utils import check_array, resample
@@ -99,7 +100,7 @@ def fit(self, X_list):
99100
pa, pi = self._estimate_order(X_list)
100101

101102
# Remove superfluous edges
102-
pa_list = [self._remove_edges(X, pa, pi) for X in X_list]
103+
pa_list = [self._remove_edges(X, copy.deepcopy(pa), pi) for X in X_list]
103104

104105
# Create adjacency matrix from parent-child relationship
105106
am_list = []

0 commit comments

Comments
 (0)