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
3051b771
Commit
3051b771
authored
Nov 30, 2016
by
Guolin Ke
Browse files
some typo
parent
05754b95
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+1
-1
python-package/lightgbm/sklearn.py
python-package/lightgbm/sklearn.py
+2
-2
python-package/setup.py
python-package/setup.py
+3
-4
No files found.
python-package/lightgbm/basic.py
View file @
3051b771
...
...
@@ -1211,7 +1211,7 @@ class Booster(object):
"""
for
key
,
value
in
kwargs
.
items
():
if
value
is
not
None
:
if
not
is
instance
(
value
,
STRING_TYPES
):
if
not
is
_str
(
value
):
raise
ValueError
(
"Set Attr only accepts string values"
)
self
.
__attr
[
key
]
=
value
else
:
...
...
python-package/lightgbm/sklearn.py
View file @
3051b771
...
...
@@ -24,7 +24,7 @@ except ImportError:
def
_objective_decorator
(
func
):
"""Decorate an objective function
Converts an objective function using the typical sklearn metrics to LightGBM
f
fobj
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
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):
"""
+
'
\n
'
.
join
(
LGBMModel
.
__doc__
.
split
(
'
\n
'
)[
2
:])
class
LGBMClassifier
(
LGBMModel
,
LGBMClassifierBase
):
__doc__
=
"""Implementation of the scikit-learn API for L
GBMoost
classification.
__doc__
=
"""Implementation of the scikit-learn API for L
ightGBM
classification.
"""
+
'
\n
'
.
join
(
LGBMModel
.
__doc__
.
split
(
'
\n
'
)[
2
:])
...
...
python-package/setup.py
View file @
3051b771
...
...
@@ -16,10 +16,9 @@ exec(compile(open(libpath_py, "rb").read(), libpath_py, 'exec'), libpath, libpat
LIB_PATH
=
libpath
[
'find_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'
,
version
=
open
(
os
.
path
.
join
(
CURRENT_DIR
,
'lightgbm/VERSION'
)).
read
().
strip
()
,
version
=
0.1
,
description
=
"LightGBM Python Package"
,
install_requires
=
[
'numpy'
,
...
...
@@ -31,4 +30,4 @@ setup(name='lightgbm',
packages
=
find_packages
(),
include_package_data
=
True
,
data_files
=
[(
'lightgbm'
,
LIB_PATH
)],
url
=
'
h
https://github.com/Microsoft/LightGBM'
)
url
=
'https://github.com/Microsoft/LightGBM'
)
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