Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
de1f3cb3
Unverified
Commit
de1f3cb3
authored
Sep 07, 2019
by
Nikita Titov
Committed by
GitHub
Sep 07, 2019
Browse files
[python] removed excess condition (#2385)
parent
22cd39e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+1
-1
No files found.
python-package/lightgbm/basic.py
View file @
de1f3cb3
...
...
@@ -202,7 +202,7 @@ FIELD_TYPE_MAPPER = {"label": C_API_DTYPE_FLOAT32,
def
convert_from_sliced_object
(
data
):
"""Fix the memory of multi-dimensional sliced object."""
if
data
.
base
is
not
None
and
isinstance
(
data
,
np
.
ndarray
)
and
isinstance
(
data
.
base
,
np
.
ndarray
):
if
isinstance
(
data
,
np
.
ndarray
)
and
isinstance
(
data
.
base
,
np
.
ndarray
):
if
not
data
.
flags
.
c_contiguous
:
warnings
.
warn
(
"Usage of np.ndarray subset (sliced data) is not recommended "
"due to it will double the peak memory cost in LightGBM."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment