Skip to content

Commit

Permalink
[python] fixed typo (#2386)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS committed Sep 7, 2019
1 parent 7509ec8 commit 22cd39e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/lightgbm/basic.py
Expand Up @@ -1173,7 +1173,7 @@ def set_field(self, field_name, data):
elif data.dtype == np.int32:
ptr_data, type_data, _ = c_int_array(data)
else:
raise TypeError("Excepted np.float32/64 or np.int32, meet type({})".format(data.dtype))
raise TypeError("Expected 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(
Expand Down

0 comments on commit 22cd39e

Please sign in to comment.