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

'deterministic' parameter not recognised #4335

Closed
davidmosca opened this issue Jun 2, 2021 · 4 comments
Closed

'deterministic' parameter not recognised #4335

davidmosca opened this issue Jun 2, 2021 · 4 comments
Labels

Comments

@davidmosca
Copy link

Description

The code below triggers the following error:
[LightGBM] [Warning] Unknown parameter: deterministic
According to the documentation (https://lightgbm.readthedocs.io/en/latest/Parameters.html), 'deterministic' is a valid parameter.

Reproducible example

import numpy as np
model = lgb.LGBMRanker(importance_type='gain', deterministic=True, min_child_samples=1, force_col_wise=True)
N = 20
y = np.arange(N)
X = np.random.normal(size=(N, 2))
X[:, 1] = y[0:]+1
model.fit(X, y, group=[N])

Environment info

LightGBM version or commit hash: 3.0.0

Command(s) you used to install LightGBM

conda install -c conda-forge lightgbm

Windows 10 Pro, Python 3.8

@jameslamb
Copy link
Collaborator

Thanks for using LightGBM, and for the excellent detailed report! We really appreciate it.

deterministic was introduced in LightGBM 3.1.0

We do not maintain the conda-forge package, but I just checked https://github.com/conda-forge/lightgbm-feedstock and it looks like that package is up to 3.2.1. So I expect that this would be fixed by conda install -c conda-forge -y 'lightgbm>=3.1.0'

@jameslamb
Copy link
Collaborator

According to the documentation (https://lightgbm.readthedocs.io/en/latest/Parameters.html), 'deterministic' is a valid parameter.

Apologies for the confusion on this, we only very recently adopted the practice of publishing versioned docs (#4236), so the documentation at that site refers to the state of LightGBM as of the most recent development version.

@davidmosca
Copy link
Author

Updating LightGBM solves the issue. Thanks.

@github-actions
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 Aug 23, 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

2 participants