"git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "3f401477872813a81ca98e90b9b42d085b1013d2"
Unverified Commit 3f7e6081 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

release v4.5.0 (#6538)

parent a4793b62
version: 4.4.0.99.{build} version: 4.5.0.{build}
image: Visual Studio 2015 image: Visual Studio 2015
platform: x64 platform: x64
......
#! /bin/sh #! /bin/sh
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71 for lightgbm 4.4.0.99. # Generated by GNU Autoconf 2.71 for lightgbm 4.5.0.
# #
# #
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
...@@ -607,8 +607,8 @@ MAKEFLAGS= ...@@ -607,8 +607,8 @@ MAKEFLAGS=
# Identity of this package. # Identity of this package.
PACKAGE_NAME='lightgbm' PACKAGE_NAME='lightgbm'
PACKAGE_TARNAME='lightgbm' PACKAGE_TARNAME='lightgbm'
PACKAGE_VERSION='4.4.0.99' PACKAGE_VERSION='4.5.0'
PACKAGE_STRING='lightgbm 4.4.0.99' PACKAGE_STRING='lightgbm 4.5.0'
PACKAGE_BUGREPORT='' PACKAGE_BUGREPORT=''
PACKAGE_URL='' PACKAGE_URL=''
...@@ -1211,7 +1211,7 @@ if test "$ac_init_help" = "long"; then ...@@ -1211,7 +1211,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing. # Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh. # This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF cat <<_ACEOF
\`configure' configures lightgbm 4.4.0.99 to adapt to many kinds of systems. \`configure' configures lightgbm 4.5.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]... Usage: $0 [OPTION]... [VAR=VALUE]...
...@@ -1273,7 +1273,7 @@ fi ...@@ -1273,7 +1273,7 @@ fi
if test -n "$ac_init_help"; then if test -n "$ac_init_help"; then
case $ac_init_help in case $ac_init_help in
short | recursive ) echo "Configuration of lightgbm 4.4.0.99:";; short | recursive ) echo "Configuration of lightgbm 4.5.0:";;
esac esac
cat <<\_ACEOF cat <<\_ACEOF
...@@ -1341,7 +1341,7 @@ fi ...@@ -1341,7 +1341,7 @@ fi
test -n "$ac_init_help" && exit $ac_status test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then if $ac_init_version; then
cat <<\_ACEOF cat <<\_ACEOF
lightgbm configure 4.4.0.99 lightgbm configure 4.5.0
generated by GNU Autoconf 2.71 generated by GNU Autoconf 2.71
Copyright (C) 2021 Free Software Foundation, Inc. Copyright (C) 2021 Free Software Foundation, Inc.
...@@ -1378,7 +1378,7 @@ cat >config.log <<_ACEOF ...@@ -1378,7 +1378,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake. running configure, to aid debugging if configure makes a mistake.
It was created by lightgbm $as_me 4.4.0.99, which was It was created by lightgbm $as_me 4.5.0, which was
generated by GNU Autoconf 2.71. Invocation command line was generated by GNU Autoconf 2.71. Invocation command line was
$ $0$ac_configure_args_raw $ $0$ac_configure_args_raw
...@@ -2454,7 +2454,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ...@@ -2454,7 +2454,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their # report actual input values of CONFIG_FILES etc. instead of their
# values after options handling. # values after options handling.
ac_log=" ac_log="
This file was extended by lightgbm $as_me 4.4.0.99, which was This file was extended by lightgbm $as_me 4.5.0, which was
generated by GNU Autoconf 2.71. Invocation command line was generated by GNU Autoconf 2.71. Invocation command line was
CONFIG_FILES = $CONFIG_FILES CONFIG_FILES = $CONFIG_FILES
...@@ -2509,7 +2509,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ ...@@ -2509,7 +2509,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped' ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\ ac_cs_version="\\
lightgbm config.status 4.4.0.99 lightgbm config.status 4.5.0
configured by $0, generated by GNU Autoconf 2.71, configured by $0, generated by GNU Autoconf 2.71,
with options \\"\$ac_cs_config\\" with options \\"\$ac_cs_config\\"
......
# CRAN Submission History # CRAN Submission History
## v4.5.0 - Submission 1 - (TBD)
### CRAN response
TBD
### Maintainer Notes
This release was a response to a request from CRAN.
On July 4, 2024, CRAN notified us that the following compiler warnings raised by `gcc` 14 needed to be fixed by August 3, 2024.
```text
Result: WARN
Found the following significant warnings:
io/dense_bin.hpp:617:27: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
io/multi_val_dense_bin.hpp:346:26: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
io/multi_val_sparse_bin.hpp:433:36: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
io/sparse_bin.hpp:785:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
See ‘/data/gannet/ripley/R/packages/tests-devel/lightgbm.Rcheck/00install.out’ for details.
```
This release contains fixes for those issues.
## v4.4.0 - Submission 1 - (June 14, 2024) ## v4.4.0 - Submission 1 - (June 14, 2024)
### CRAN response ### CRAN response
......
...@@ -14,7 +14,7 @@ repo: ...@@ -14,7 +14,7 @@ repo:
user: https://github.com/ user: https://github.com/
development: development:
mode: unreleased mode: release
authors: authors:
Yu Shi: Yu Shi:
......
...@@ -149,7 +149,7 @@ Core Parameters ...@@ -149,7 +149,7 @@ Core Parameters
- ``goss``, Gradient-based One-Side Sampling - ``goss``, Gradient-based One-Side Sampling
- *New in 4.0.0* - *New in version 4.0.0*
- ``data`` :raw-html:`<a id="data" title="Permalink to this parameter" href="#data">&#x1F517;&#xFE0E;</a>`, default = ``""``, type = string, aliases: ``train``, ``train_data``, ``train_data_file``, ``data_filename`` - ``data`` :raw-html:`<a id="data" title="Permalink to this parameter" href="#data">&#x1F517;&#xFE0E;</a>`, default = ``""``, type = string, aliases: ``train``, ``train_data``, ``train_data_file``, ``data_filename``
...@@ -414,7 +414,7 @@ Learning Control Parameters ...@@ -414,7 +414,7 @@ Learning Control Parameters
- when early stopping is used (i.e. ``early_stopping_round > 0``), require the early stopping metric to improve by at least this delta to be considered an improvement - when early stopping is used (i.e. ``early_stopping_round > 0``), require the early stopping metric to improve by at least this delta to be considered an improvement
- *New in 4.4.0* - *New in version 4.4.0*
- ``first_metric_only`` :raw-html:`<a id="first_metric_only" title="Permalink to this parameter" href="#first_metric_only">&#x1F517;&#xFE0E;</a>`, default = ``false``, type = bool - ``first_metric_only`` :raw-html:`<a id="first_metric_only" title="Permalink to this parameter" href="#first_metric_only">&#x1F517;&#xFE0E;</a>`, default = ``false``, type = bool
...@@ -692,7 +692,7 @@ Learning Control Parameters ...@@ -692,7 +692,7 @@ Learning Control Parameters
- **Note**: can be used only with ``device_type = cpu`` and ``device_type=cuda`` - **Note**: can be used only with ``device_type = cpu`` and ``device_type=cuda``
- *New in 4.0.0* - *New in version 4.0.0*
- ``quant_train_renew_leaf`` :raw-html:`<a id="quant_train_renew_leaf" title="Permalink to this parameter" href="#quant_train_renew_leaf">&#x1F517;&#xFE0E;</a>`, default = ``false``, type = bool - ``quant_train_renew_leaf`` :raw-html:`<a id="quant_train_renew_leaf" title="Permalink to this parameter" href="#quant_train_renew_leaf">&#x1F517;&#xFE0E;</a>`, default = ``false``, type = bool
...@@ -702,7 +702,7 @@ Learning Control Parameters ...@@ -702,7 +702,7 @@ Learning Control Parameters
- **Note**: can be used only with ``device_type = cpu`` and ``device_type=cuda`` - **Note**: can be used only with ``device_type = cpu`` and ``device_type=cuda``
- *New in 4.0.0* - *New in version 4.0.0*
- ``stochastic_rounding`` :raw-html:`<a id="stochastic_rounding" title="Permalink to this parameter" href="#stochastic_rounding">&#x1F517;&#xFE0E;</a>`, default = ``true``, type = bool - ``stochastic_rounding`` :raw-html:`<a id="stochastic_rounding" title="Permalink to this parameter" href="#stochastic_rounding">&#x1F517;&#xFE0E;</a>`, default = ``true``, type = bool
...@@ -710,7 +710,7 @@ Learning Control Parameters ...@@ -710,7 +710,7 @@ Learning Control Parameters
- **Note**: can be used only with ``device_type = cpu`` and ``device_type=cuda`` - **Note**: can be used only with ``device_type = cpu`` and ``device_type=cuda``
- *New in 4.0.0* - *New in version 4.0.0*
IO Parameters IO Parameters
------------- -------------
...@@ -930,7 +930,7 @@ Dataset Parameters ...@@ -930,7 +930,7 @@ Dataset Parameters
- **Note**: ``lightgbm-transform`` is not maintained by LightGBM's maintainers. Bug reports or feature requests should go to `issues page <https://github.com/microsoft/lightgbm-transform/issues>`__ - **Note**: ``lightgbm-transform`` is not maintained by LightGBM's maintainers. Bug reports or feature requests should go to `issues page <https://github.com/microsoft/lightgbm-transform/issues>`__
- *New in 4.0.0* - *New in version 4.0.0*
Predict Parameters Predict Parameters
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
......
...@@ -181,7 +181,7 @@ struct Config { ...@@ -181,7 +181,7 @@ struct Config {
// desc = ``bagging``, Randomly Bagging Sampling // desc = ``bagging``, Randomly Bagging Sampling
// descl2 = **Note**: ``bagging`` is only effective when ``bagging_freq > 0`` and ``bagging_fraction < 1.0`` // descl2 = **Note**: ``bagging`` is only effective when ``bagging_freq > 0`` and ``bagging_fraction < 1.0``
// desc = ``goss``, Gradient-based One-Side Sampling // desc = ``goss``, Gradient-based One-Side Sampling
// desc = *New in 4.0.0* // desc = *New in version 4.0.0*
std::string data_sample_strategy = "bagging"; std::string data_sample_strategy = "bagging";
// alias = train, train_data, train_data_file, data_filename // alias = train, train_data, train_data_file, data_filename
...@@ -396,7 +396,7 @@ struct Config { ...@@ -396,7 +396,7 @@ struct Config {
// check = >=0.0 // check = >=0.0
// desc = when early stopping is used (i.e. ``early_stopping_round > 0``), require the early stopping metric to improve by at least this delta to be considered an improvement // desc = when early stopping is used (i.e. ``early_stopping_round > 0``), require the early stopping metric to improve by at least this delta to be considered an improvement
// desc = *New in 4.4.0* // desc = *New in version 4.4.0*
double early_stopping_min_delta = 0.0; double early_stopping_min_delta = 0.0;
// desc = LightGBM allows you to provide multiple evaluation metrics. Set this to ``true``, if you want to use only the first metric for early stopping // desc = LightGBM allows you to provide multiple evaluation metrics. Set this to ``true``, if you want to use only the first metric for early stopping
...@@ -626,18 +626,18 @@ struct Config { ...@@ -626,18 +626,18 @@ struct Config {
// desc = number of bins to quantization gradients and hessians // desc = number of bins to quantization gradients and hessians
// desc = with more bins, the quantized training will be closer to full precision training // desc = with more bins, the quantized training will be closer to full precision training
// desc = **Note**: can be used only with ``device_type = cpu`` and ``device_type=cuda`` // desc = **Note**: can be used only with ``device_type = cpu`` and ``device_type=cuda``
// desc = *New in 4.0.0* // desc = *New in version 4.0.0*
int num_grad_quant_bins = 4; int num_grad_quant_bins = 4;
// desc = whether to renew the leaf values with original gradients when quantized training // desc = whether to renew the leaf values with original gradients when quantized training
// desc = renewing is very helpful for good quantized training accuracy for ranking objectives // desc = renewing is very helpful for good quantized training accuracy for ranking objectives
// desc = **Note**: can be used only with ``device_type = cpu`` and ``device_type=cuda`` // desc = **Note**: can be used only with ``device_type = cpu`` and ``device_type=cuda``
// desc = *New in 4.0.0* // desc = *New in version 4.0.0*
bool quant_train_renew_leaf = false; bool quant_train_renew_leaf = false;
// desc = whether to use stochastic rounding in gradient quantization // desc = whether to use stochastic rounding in gradient quantization
// desc = **Note**: can be used only with ``device_type = cpu`` and ``device_type=cuda`` // desc = **Note**: can be used only with ``device_type = cpu`` and ``device_type=cuda``
// desc = *New in 4.0.0* // desc = *New in version 4.0.0*
bool stochastic_rounding = true; bool stochastic_rounding = true;
#ifndef __NVCC__ #ifndef __NVCC__
...@@ -801,7 +801,7 @@ struct Config { ...@@ -801,7 +801,7 @@ struct Config {
// desc = path to a ``.json`` file that specifies customized parser initialized configuration // desc = path to a ``.json`` file that specifies customized parser initialized configuration
// desc = see `lightgbm-transform <https://github.com/microsoft/lightgbm-transform>`__ for usage examples // desc = see `lightgbm-transform <https://github.com/microsoft/lightgbm-transform>`__ for usage examples
// desc = **Note**: ``lightgbm-transform`` is not maintained by LightGBM's maintainers. Bug reports or feature requests should go to `issues page <https://github.com/microsoft/lightgbm-transform/issues>`__ // desc = **Note**: ``lightgbm-transform`` is not maintained by LightGBM's maintainers. Bug reports or feature requests should go to `issues page <https://github.com/microsoft/lightgbm-transform/issues>`__
// desc = *New in 4.0.0* // desc = *New in version 4.0.0*
std::string parser_config_file = ""; std::string parser_config_file = "";
#ifndef __NVCC__ #ifndef __NVCC__
......
...@@ -1157,7 +1157,10 @@ class LGBMModel(_LGBMModelBase): ...@@ -1157,7 +1157,10 @@ class LGBMModel(_LGBMModelBase):
@property @property
def feature_names_in_(self) -> np.ndarray: def feature_names_in_(self) -> np.ndarray:
""":obj:`array` of shape = [n_features]: scikit-learn compatible version of ``.feature_name_``.""" """:obj:`array` of shape = [n_features]: scikit-learn compatible version of ``.feature_name_``.
.. versionadded:: 4.5.0
"""
if not self.__sklearn_is_fitted__(): if not self.__sklearn_is_fitted__():
raise LGBMNotFittedError("No feature_names_in_ found. Need to call fit beforehand.") raise LGBMNotFittedError("No feature_names_in_ found. Need to call fit beforehand.")
return np.array(self.feature_name_) return np.array(self.feature_name_)
......
...@@ -30,7 +30,7 @@ maintainers = [ ...@@ -30,7 +30,7 @@ maintainers = [
name = "lightgbm" name = "lightgbm"
readme = "README.rst" readme = "README.rst"
requires-python = ">=3.7" requires-python = ">=3.7"
version = "4.4.0.99" version = "4.5.0"
[project.optional-dependencies] [project.optional-dependencies]
arrow = [ arrow = [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment