"...git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "cebdc2a8c436dfc92c6169b2f54ddaecee827cb4"
Commit 3051b771 authored by Guolin Ke's avatar Guolin Ke
Browse files

some typo

parent 05754b95
...@@ -1211,7 +1211,7 @@ class Booster(object): ...@@ -1211,7 +1211,7 @@ class Booster(object):
""" """
for key, value in kwargs.items(): for key, value in kwargs.items():
if value is not None: if value is not None:
if not isinstance(value, STRING_TYPES): if not is_str(value):
raise ValueError("Set Attr only accepts string values") raise ValueError("Set Attr only accepts string values")
self.__attr[key] = value self.__attr[key] = value
else: else:
......
...@@ -24,7 +24,7 @@ except ImportError: ...@@ -24,7 +24,7 @@ except ImportError:
def _objective_decorator(func): def _objective_decorator(func):
"""Decorate an objective function """Decorate an objective function
Converts an objective function using the typical sklearn metrics to LightGBM ffobj Converts an objective function using the typical sklearn metrics to LightGBM fobj
Note: for multi-class task, the label/pred is group by class_id first, then group by row_id Note: for multi-class task, the label/pred is group by class_id first, then group by row_id
if you want to get i-th row label/pred in j-th class, the access way is label/pred[j*num_data+i] if you want to get i-th row label/pred in j-th class, the access way is label/pred[j*num_data+i]
...@@ -282,7 +282,7 @@ class LGBMRegressor(LGBMModel, LGBMRegressorBase): ...@@ -282,7 +282,7 @@ class LGBMRegressor(LGBMModel, LGBMRegressorBase):
""" + '\n'.join(LGBMModel.__doc__.split('\n')[2:]) """ + '\n'.join(LGBMModel.__doc__.split('\n')[2:])
class LGBMClassifier(LGBMModel, LGBMClassifierBase): class LGBMClassifier(LGBMModel, LGBMClassifierBase):
__doc__ = """Implementation of the scikit-learn API for LGBMoost classification. __doc__ = """Implementation of the scikit-learn API for LightGBM classification.
""" + '\n'.join(LGBMModel.__doc__.split('\n')[2:]) """ + '\n'.join(LGBMModel.__doc__.split('\n')[2:])
......
...@@ -16,10 +16,9 @@ exec(compile(open(libpath_py, "rb").read(), libpath_py, 'exec'), libpath, libpat ...@@ -16,10 +16,9 @@ exec(compile(open(libpath_py, "rb").read(), libpath_py, 'exec'), libpath, libpat
LIB_PATH = libpath['find_lib_path']() LIB_PATH = libpath['find_lib_path']()
print("Install lib_lightgbm from: %s" % LIB_PATH) print("Install lib_lightgbm from: %s" % LIB_PATH)
# Please use setup_pip.py for generating and deploying pip installation
# detailed instruction in setup_pip.py
setup(name='lightgbm', setup(name='lightgbm',
version=open(os.path.join(CURRENT_DIR, 'lightgbm/VERSION')).read().strip(), version=0.1,
description="LightGBM Python Package", description="LightGBM Python Package",
install_requires=[ install_requires=[
'numpy', 'numpy',
...@@ -31,4 +30,4 @@ setup(name='lightgbm', ...@@ -31,4 +30,4 @@ setup(name='lightgbm',
packages=find_packages(), packages=find_packages(),
include_package_data=True, include_package_data=True,
data_files=[('lightgbm', LIB_PATH)], data_files=[('lightgbm', LIB_PATH)],
url='hhttps://github.com/Microsoft/LightGBM') url='https://github.com/Microsoft/LightGBM')
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