Unverified Commit 22cd39e8 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[python] fixed typo (#2386)

parent 7509ec8a
...@@ -1173,7 +1173,7 @@ class Dataset(object): ...@@ -1173,7 +1173,7 @@ class Dataset(object):
elif data.dtype == np.int32: elif data.dtype == np.int32:
ptr_data, type_data, _ = c_int_array(data) ptr_data, type_data, _ = c_int_array(data)
else: 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]: if type_data != FIELD_TYPE_MAPPER[field_name]:
raise TypeError("Input type error for set_field") raise TypeError("Input type error for set_field")
_safe_call(_LIB.LGBM_DatasetSetField( _safe_call(_LIB.LGBM_DatasetSetField(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment