Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no parameter data_sample_strategy and goss is to be implemented via 'boosting' parameter. Documentation says otherwise #5799

Closed
nitinmnsn opened this issue Mar 22, 2023 · 2 comments
Labels

Comments

@nitinmnsn
Copy link

Description

As per the documentation goss is to be implemented via data_sample_strategy, however the api returns a warning Unknown parameter: data_sample_strategy

Reproducible example

import pandas as pd
import numpy as np
import lightgbm
from sklearn.datasets import make_classification
from model_selection import optuna_lgbmcv_selection

#creating dummy data
data = make_classification(n_samples = 10_000, n_features = 20, n_informative = 7)

#setting dummy column names
dt = pd.DataFrame(data[0],columns = [str(i) for i in range(data[0].shape[1])])
#dummy labels
yt = pd.Series(data[1])

d = lightgbm.Dataset(dt,label=yt)
lightgbm.train(params = {'learning_rate':0.1,"data_sample_strategy":'goss'},train_set = d)

Environment info

LightGBM version or commit hash:
3.3.5

Command(s) you used to install LightGBM

```pip install lightgbm```

Additional Comments

@jmoralez
Copy link
Collaborator

Hey @nitinmnsn, thanks for using LightGBM. I believe this is the same as #5781 and it's due to the fact that the latest docs point to the master branch, not the latest release. Sorry for the confusion.

Copy link

This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants