Skip to content

Commit

Permalink
update varlingam and 0.1.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kunwuz committed Nov 2, 2023
1 parent 0901441 commit 2ca15ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions causallearn/search/FCMBased/lingam/var_lingam.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,14 @@ def _estimate_var_coefs(self, X):
# XXX: VAR.fit() is not searching lags correctly
if self._criterion not in ['aic', 'fpe', 'hqic', 'bic']:
var = VAR(X)
result = var.fit(maxlags=self._lags, trend='nc')
result = var.fit(maxlags=self._lags, trend='n')
else:
min_value = float('Inf')
result = None

for lag in range(1, self._lags + 1):
var = VAR(X)
fitted = var.fit(maxlags=lag, ic=None, trend='nc')
fitted = var.fit(maxlags=lag, ic=None, trend='n')

value = getattr(fitted, self._criterion)
if value < min_value:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
with open('README.md', 'r') as fh:
README = fh.read()

VERSION = '0.1.3.6'
VERSION = '0.1.3.7'

setuptools.setup(
name='causal-learn',
Expand Down

0 comments on commit 2ca15ff

Please sign in to comment.