Skip to content

Commit be54b9d

Browse files
Clean code
1 parent eb27323 commit be54b9d

File tree

12 files changed

+173
-227
lines changed

12 files changed

+173
-227
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# stop the build if there are Python syntax errors or undefined names
2727
flake8 lingam --count --select=E9,F63,F7,F82 --show-source --statistics
2828
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
29-
flake8 lingam --count --exit-zero --ignore=E203,E741, --max-complexity=10 --max-line-length=127 --statistics
29+
flake8 lingam --count --exit-zero --ignore=E203,E741,C901 --max-line-length=127 --statistics
3030
- name: Test with pytest
3131
run: |
3232
pytest -v --cov=lingam --cov-report=term-missing

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ In addition, we add the following guidelines:
2525
Coding style is checked with flake8.
2626

2727
``` sh
28-
flake8 lingam --count --ignore=E203,E741 --max-complexity=10 --max-line-length=127 --statistics
28+
flake8 lingam --count --ignore=E203,E741,C901 --max-line-length=127 --statistics
2929
```
3030

3131
## Documentation

lingam/bottom_up_parce_lingam.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,11 @@ def __init__(
5555
* ``1`` : :math:`x_i` has a directed path to :math:`x_j`
5656
* ``-1`` : No prior knowledge is available to know if either of the two cases above (0 or 1) is true.
5757
independence : {'hsic', 'fcorr'}, optional (default='hsic')
58-
Methods to determine independence. If 'hsic' is set, test for independence by HSIC. If 'fcorr' is set, independence is determined by F-correlation.
58+
Methods to determine independence. If 'hsic' is set, test for independence by HSIC.
59+
If 'fcorr' is set, independence is determined by F-correlation.
5960
ind_corr : float, optional (default=0.5)
60-
The threshold value for determining independence by F-correlation; independence is determined when the value of F-correlation is below this threshold value.
61+
The threshold value for determining independence by F-correlation;
62+
independence is determined when the value of F-correlation is below this threshold value.
6163
"""
6264
# Check parameters
6365
if regressor is not None:

lingam/camuv.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ def __init__(
3636
num_explanatory_vals : int, optional (default=2)
3737
Maximum number of explanatory variables.
3838
independence : {'hsic', 'fcorr'}, optional (default='hsic')
39-
Methods to determine independence. If 'hsic' is set, test for independence by HSIC. If 'fcorr' is set, independence is determined by F-correlation.
39+
Methods to determine independence. If 'hsic' is set, test for independence by HSIC.
40+
If 'fcorr' is set, independence is determined by F-correlation.
4041
ind_corr : float, optional (default=0.5)
41-
The threshold value for determining independence by F-correlation; independence is determined when the value of F-correlation is below this threshold value.
42+
The threshold value for determining independence by F-correlation;
43+
independence is determined when the value of F-correlation is below this threshold value.
4244
"""
4345

4446
# Check parameters

0 commit comments

Comments
 (0)