qdscreen/selector.py
1
F401:
'scipy.stats.mode as scipy_mode' imported but unused
3
from
scipy.stats
import
mode
as
scipy_mode
1
E261:
at least two spaces before inline comment
66
__slots__
=
(
'forest'
,
# the QDForest
1
E501:
line too long (123 > 120 characters)
279
X
.
loc
[:,
varnames
[
child
]]
=
self
.
_maps
[
parent
][
child
]
.
predict_child_from_parent
(
X
.
loc
[:,
varnames
[
parent
]])
5
S101:
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
122
assert
isinstance
(
X
,
np
.
ndarray
)
132
assert
X
.
shape
[
1
]
==
n
162
assert
isinstance
(
X
,
pd
.
DataFrame
)
203
assert
is_x_nparray
==
forest
.
is_nparray
242
assert
is_x_nparray
==
forest
.
is_nparray