We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 029928b + 8480703 commit 53b9940Copy full SHA for 53b9940
4 files changed
.circleci/config.yml
@@ -48,15 +48,6 @@ jobs:
48
command: |
49
sudo apt-get install -y libgeos-dev libproj-dev proj-data graphviz
50
51
- - run:
52
- name: Install llvmlite
53
- command: |
54
- sudo apt-get install lsb-release wget software-properties-common
55
- wget https://apt.llvm.org/llvm.sh
56
- chmod +x llvm.sh
57
- sudo ./llvm.sh 10
58
- ls /usr/bin/llvm*
59
-
60
- run:
61
name: Install standard libraries
62
@@ -74,15 +65,6 @@ jobs:
74
65
pip install --no-binary shapely shapely
75
66
pip install cartopy
76
67
77
78
- name: Install numba, llvmlite
79
80
- python -m venv venv
81
- . venv/bin/activate
82
- # export LLVM_CONFIG=/usr/local/opt/llvm/bin/llvm-config
83
- sudo ln -s /usr/bin/llvm-config-10 /usr/bin/llvm-config
84
- pip install llvmlite numba
85
86
68
87
69
name: install dependencies
88
70
.travis.yml
@@ -17,12 +17,6 @@ matrix:
17
18
before_install:
19
- sudo apt-get install libgeos-dev libproj-dev proj-data graphviz libblas-dev liblapack-dev
20
- - wget https://apt.llvm.org/llvm.sh
21
- - chmod +x llvm.sh
22
- - sudo ./llvm.sh 10
23
- - ls /usr/bin/llvm*
24
- - export LLVM_CONFIG=/usr/bin/llvm-config
25
- # - sudo ln -s /usr/bin/llvm-config-10 /usr/bin/llvm-config
26
- sudo apt-get -y install graphviz
27
28
install:
_unittests/ut_module/test_SKIP_code_style.py
@@ -16,7 +16,7 @@ def test_style_src(self):
16
check_pep8(src_, fLOG=fLOG,
pylint_ignore=('C0103', 'C1801', 'R0201', 'R1705', 'W0108', 'W0613',
'W0201', 'W0221', 'E0632', 'R1702', 'W0212', 'W0223',
- 'W0107', "R1720"),
+ 'W0107', "R1720", 'R1732'),
skip=["categories_to_integers.py:174: W0640",
"E0401: Unable to import 'mlinsights.mlmodel.piecewise_tree_regression_criterion",
"setup.py:",
@@ -29,7 +29,8 @@ def test_style_test(self):
29
test = os.path.normpath(os.path.join(thi, "..", ))
30
check_pep8(test, fLOG=fLOG, neg_pattern="temp_.*",
31
32
- 'C0111', 'W0107', 'C0111', 'R1702', 'C0415', "R1720"),
+ 'C0111', 'W0107', 'C0111', 'R1702', 'C0415', "R1720",
33
+ 'R1732'),
34
skip=["Instance of 'tuple' has no",
35
"[E402] module level import",
36
"E0611: No name '_test_criterion_",
mlinsights/mlmodel/_piecewise_tree_regression_common024.pyx
@@ -43,6 +43,14 @@ cdef class CommonRegressorCriterion(Criterion):
43
def __cinit__(self, const DOUBLE_t[:, ::1] X):
44
self.sample_X = X
45
46
+ def __deepcopy__(self, memo=None):
47
+ """
+ This does not a copy but mostly creates a new instance
+ of the same criterion initialized with the same data.
+ inst = self.__class__(self.sample_X)
+ return inst
+
cdef void _update_weights(self, SIZE_t start, SIZE_t end, SIZE_t old_pos, SIZE_t new_pos) nogil:
"""
Updates members `weighted_n_right` and `weighted_n_left`
0 commit comments