Skip to content

Commit

Permalink
added estimator's tags (#2150)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS authored and guolinke committed May 6, 2019
1 parent cfcc020 commit a47782f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python-package/lightgbm/sklearn.py
Expand Up @@ -290,6 +290,10 @@ def __init__(self, boosting_type='gbdt', num_leaves=31, max_depth=-1,
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.
Expand Down

0 comments on commit a47782f

Please sign in to comment.