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
e4dde71f
Commit
e4dde71f
authored
Dec 31, 2016
by
Guolin Ke
Committed by
GitHub
Dec 31, 2016
Browse files
Update basic.py
parent
13226fa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+2
-2
No files found.
python-package/lightgbm/basic.py
View file @
e4dde71f
...
...
@@ -535,8 +535,8 @@ class _InnerDataset(object):
"""start construct data"""
if
is_str
(
data
):
"""check data has header or not"""
if
params
.
get
(
"has_header"
,
""
).
lower
()
==
"true"
\
or
params
.
get
(
"header"
,
""
).
lower
()
==
"true"
:
if
str
(
params
.
get
(
"has_header"
,
""
)
)
.
lower
()
==
"true"
\
or
str
(
params
.
get
(
"header"
,
""
)
)
.
lower
()
==
"true"
:
self
.
data_has_header
=
True
self
.
handle
=
ctypes
.
c_void_p
()
_safe_call
(
_LIB
.
LGBM_DatasetCreateFromFile
(
...
...
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