Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
08ce574a
Unverified
Commit
08ce574a
authored
Oct 28, 2025
by
Nikita Titov
Committed by
GitHub
Oct 28, 2025
Browse files
Merge branch 'master' into rocm3
parents
548cec82
fd1a0f4a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
73 additions
and
9 deletions
+73
-9
R-package/DESCRIPTION
R-package/DESCRIPTION
+1
-1
R-package/R/lgb.Booster.R
R-package/R/lgb.Booster.R
+3
-0
R-package/R/lgb.Dataset.R
R-package/R/lgb.Dataset.R
+1
-0
R-package/man/lgb_predict_shared_params.Rd
R-package/man/lgb_predict_shared_params.Rd
+57
-0
R-package/man/lgb_shared_dataset_params.Rd
R-package/man/lgb_shared_dataset_params.Rd
+3
-0
docs/env.yml
docs/env.yml
+8
-8
No files found.
R-package/DESCRIPTION
View file @
08ce574a
...
@@ -63,4 +63,4 @@ Imports:
...
@@ -63,4 +63,4 @@ Imports:
utils
utils
SystemRequirements:
SystemRequirements:
C++17
C++17
RoxygenNote: 7.3.
2
RoxygenNote: 7.3.
3
R-package/R/lgb.Booster.R
View file @
08ce574a
...
@@ -874,6 +874,7 @@ Booster <- R6::R6Class(
...
@@ -874,6 +874,7 @@ Booster <- R6::R6Class(
)
)
#' @name lgb_predict_shared_params
#' @name lgb_predict_shared_params
#' @title Shared prediction parameter docs
#' @param type Type of prediction to output. Allowed types are:\itemize{
#' @param type Type of prediction to output. Allowed types are:\itemize{
#' \item \code{"response"}: will output the predicted score according to the objective function being
#' \item \code{"response"}: will output the predicted score according to the objective function being
#' optimized (depending on the link function that the objective uses), after applying any necessary
#' optimized (depending on the link function that the objective uses), after applying any necessary
...
@@ -915,6 +916,8 @@ Booster <- R6::R6Class(
...
@@ -915,6 +916,8 @@ Booster <- R6::R6Class(
#' the "Predict Parameters" section of the documentation} for a list of parameters and
#' the "Predict Parameters" section of the documentation} for a list of parameters and
#' valid values. Where these conflict with the values of keyword arguments to this function,
#' valid values. Where these conflict with the values of keyword arguments to this function,
#' the values in \code{params} take precedence.
#' the values in \code{params} take precedence.
#' @details This page contains shared documentation for prediction-related parameters used throughout the package.
#' @keywords internal
NULL
NULL
#' @name predict.lgb.Booster
#' @name predict.lgb.Booster
...
...
R-package/R/lgb.Dataset.R
View file @
08ce574a
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#' \code{group = c(10, 20, 40, 10, 10, 10)}, that means that you have 6 groups,
#' \code{group = c(10, 20, 40, 10, 10, 10)}, that means that you have 6 groups,
#' where the first 10 records are in the first group, records 11-30 are in the
#' where the first 10 records are in the first group, records 11-30 are in the
#' second group, etc.
#' second group, etc.
#' @details This page contains shared documentation for dataset-related parameters used throughout the package.
#' @keywords internal
#' @keywords internal
NULL
NULL
...
...
R-package/man/lgb_predict_shared_params.Rd
0 → 100644
View file @
08ce574a
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lgb.Booster.R
\name{lgb_predict_shared_params}
\alias{lgb_predict_shared_params}
\title{Shared prediction parameter docs}
\arguments{
\item{type}{Type of prediction to output. Allowed types are:\itemize{
\item \code{"response"}: will output the predicted score according to the objective function being
optimized (depending on the link function that the objective uses), after applying any necessary
transformations - for example, for \code{objective="binary"}, it will output class probabilities.
\item \code{"class"}: for classification objectives, will output the class with the highest predicted
probability. For other objectives, will output the same as "response". Note that \code{"class"} is
not a supported type for \link{lgb.configure_fast_predict} (see the documentation of that function
for more details).
\item \code{"raw"}: will output the non-transformed numbers (sum of predictions from boosting iterations'
results) from which the "response" number is produced for a given objective function - for example,
for \code{objective="binary"}, this corresponds to log-odds. For many objectives such as
"regression", since no transformation is applied, the output will be the same as for "response".
\item \code{"leaf"}: will output the index of the terminal node / leaf at which each observations falls
in each tree in the model, outputted as integers, with one column per tree.
\item \code{"contrib"}: will return the per-feature contributions for each prediction, including an
intercept (each feature will produce one column).
}
Note that, if using custom objectives, types "class" and "response" will not be available and will
default towards using "raw" instead.
If the model was fit through function \link{lightgbm} and it was passed a factor as labels,
passing the prediction type through \code{params} instead of through this argument might
result in factor levels for classification objectives not being applied correctly to the
resulting output.
\emph{New in version 4.0.0}}
\item{start_iteration}{int or None, optional (default=None)
Start index of the iteration to predict.
If None or <= 0, starts from the first iteration.}
\item{num_iteration}{int or None, optional (default=None)
Limit number of iterations in the prediction.
If None, if the best iteration exists and start_iteration is None or <= 0, the
best iteration is used; otherwise, all iterations from start_iteration are used.
If <= 0, all iterations from start_iteration are used (no limits).}
\item{params}{a list of additional named parameters. See
\href{https://lightgbm.readthedocs.io/en/latest/Parameters.html#predict-parameters}{
the "Predict Parameters" section of the documentation} for a list of parameters and
valid values. Where these conflict with the values of keyword arguments to this function,
the values in \code{params} take precedence.}
}
\description{
Shared prediction parameter docs
}
\details{
This page contains shared documentation for prediction-related parameters used throughout the package.
}
\keyword{internal}
R-package/man/lgb_shared_dataset_params.Rd
View file @
08ce574a
...
@@ -20,4 +20,7 @@ second group, etc.}
...
@@ -20,4 +20,7 @@ second group, etc.}
\description{
\description{
Parameter docs for fields used in \code{lgb.Dataset} construction
Parameter docs for fields used in \code{lgb.Dataset} construction
}
}
\details{
This page contains shared documentation for dataset-related parameters used throughout the package.
}
\keyword{internal}
\keyword{internal}
docs/env.yml
View file @
08ce574a
...
@@ -6,14 +6,14 @@ dependencies:
...
@@ -6,14 +6,14 @@ dependencies:
-
breathe>=4.36
-
breathe>=4.36
-
doxygen>=1.13.2
-
doxygen>=1.13.2
-
python=3.12
-
python=3.12
-
r-base>=4.
3.3
-
r-base>=4.
5.1
-
r-data.table=1.1
6.4
-
r-data.table=1.1
7.8
-
r-jsonlite=
1.8.9
-
r-jsonlite=
2.0.0
-
r-knitr=1.
49
-
r-knitr=1.
50
-
r-markdown=
1.13
-
r-markdown=
2.0
-
r-matrix=1.
6_5
-
r-matrix=1.
7_4
-
r-pkgdown=2.1.
1
-
r-pkgdown=2.1.
3
-
r-roxygen2=7.3.
2
-
r-roxygen2=7.3.
3
# skipping scikit-learn 1.7.1 because of the problems described in https://github.com/microsoft/LightGBM/issues/6978
# skipping scikit-learn 1.7.1 because of the problems described in https://github.com/microsoft/LightGBM/issues/6978
-
scikit-learn>=1.6.1,!=1.7.1
-
scikit-learn>=1.6.1,!=1.7.1
-
sphinx>=8.1.3
-
sphinx>=8.1.3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment