Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

lightgbm parameters intellisence Unsupport #1741

Closed
AeneasZhu opened this issue Nov 3, 2019 · 1 comment · Fixed by #1742
Closed

lightgbm parameters intellisence Unsupport #1741

AeneasZhu opened this issue Nov 3, 2019 · 1 comment · Fixed by #1742
Assignees
Labels
bug Something isn't working feature: analysis

Comments

@AeneasZhu
Copy link

image

The python language server fails to show the key parameters of lightgbm.

@MikhailArkhipov
Copy link

MikhailArkhipov commented Nov 3, 2019

class LGBMClassifier(LGBMModel, _LGBMClassifierBase): ...

Does not have __init__ but base does. LS does not see the base one.

class LGBMModel(_LGBMModelBase):
    """Implementation of the scikit-learn API for LightGBM."""

    def __init__(self, boosting_type='gbdt', num_leaves=31, max_depth=-1,
                 learning_rate=0.1, n_estimators=100,
                 subsample_for_bin=200000, objective=None, class_weight=None,
                 min_split_gain=0., min_child_weight=1e-3, min_child_samples=20,
                 subsample=1., subsample_freq=0, colsample_bytree=1.,
                 reg_alpha=0., reg_lambda=0., random_state=None,
                 n_jobs=-1, silent=True, importance_type='split', **kwargs):

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working feature: analysis
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants