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
a47782f5
Commit
a47782f5
authored
May 06, 2019
by
Nikita Titov
Committed by
Guolin Ke
May 06, 2019
Browse files
added estimator's tags (#2150)
parent
cfcc020e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
python-package/lightgbm/sklearn.py
python-package/lightgbm/sklearn.py
+4
-0
No files found.
python-package/lightgbm/sklearn.py
View file @
a47782f5
...
...
@@ -290,6 +290,10 @@ class LGBMModel(_LGBMModelBase):
self
.
_n_classes
=
None
self
.
set_params
(
**
kwargs
)
def
_more_tags
(
self
):
return
{
'allow_nan'
:
True
,
'X_types'
:
[
'2darray'
,
'sparse'
,
'1dlabels'
]}
def
get_params
(
self
,
deep
=
True
):
"""Get parameters for this estimator.
...
...
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