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
22cd39e8
"src/git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "e39f1f91d5bf9bcd16da8ad3c315f5cd77cce8dd"
Unverified
Commit
22cd39e8
authored
Sep 07, 2019
by
Nikita Titov
Committed by
GitHub
Sep 07, 2019
Browse files
[python] fixed typo (#2386)
parent
7509ec8a
Changes
1
Hide 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 @
22cd39e8
...
...
@@ -1173,7 +1173,7 @@ class Dataset(object):
elif
data
.
dtype
==
np
.
int32
:
ptr_data
,
type_data
,
_
=
c_int_array
(
data
)
else
:
raise
TypeError
(
"Ex
cep
ted np.float32/64 or np.int32, me
e
t type({})"
.
format
(
data
.
dtype
))
raise
TypeError
(
"Ex
pec
ted np.float32/64 or np.int32, met type({})"
.
format
(
data
.
dtype
))
if
type_data
!=
FIELD_TYPE_MAPPER
[
field_name
]:
raise
TypeError
(
"Input type error for set_field"
)
_safe_call
(
_LIB
.
LGBM_DatasetSetField
(
...
...
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