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

lightgbm parameters intellisence Unsupport #1741

Closed

Description

@AeneasZhu

image

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

Activity

  1. MikhailArkhipov commented on Nov 3, 2019

    @MikhailArkhipov
    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions