R Observatory
Search
install.packages("gbm")
CRAN 30-day downloads, method
28,756+8% up on the 30 days before, the better direction
Test coverage, method
58%of lines run by tests

An implementation of extensions to Freund and Schapire's AdaBoost algorithm and Friedman's gradient boosting machine. Includes regression methods for least squares, absolute loss, t-distribution loss, quantile regression, logistic, multinomial logistic, Poisson, Cox proportional hazards partial ...

Full description

An implementation of extensions to Freund and Schapire's AdaBoost algorithm and Friedman's gradient boosting machine. Includes regression methods for least squares, absolute loss, t-distribution loss, quantile regression, logistic, multinomial logistic, Poisson, Cox proportional hazards partial likelihood, AdaBoost exponential loss, Huberized hinge loss, and Learning to Rank measures (LambdaMart). Originally developed by Greg Ridgeway. Newer version available at <https://github.com/gbm-developers/gbm3>.

Maintainer
Greg Ridgeway
Latest release
9 Jul 2026
First release
21 Feb 2003

Compare with another package

More details
Releases
36
Needs compilation
Yes
Needs R
>= 3.5.0
Config/testthat/edition
3
RoxygenNote
8.0.0
Task views (2)
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("gbm")
APA
Ridgeway, G., Boehmke, B., Cunningham, J., Developers, G., Edwards, D., Greenwell, B., Kriegler, B., Schroedl, S., & Southworth, H. (2026). gbm: Generalized Boosted Regression Models (Version 2.3.1) [Computer software]. https://doi.org/10.32614/CRAN.package.gbm
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for gbm version 2.3.1 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    2.3.1
    Time taken
    160 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    2.3.1
    Time taken
    118 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    2.3.1
    Time taken
    112 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    2.3.1
    Time taken
    112 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    2.3.1
    Time taken
    261 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    2.3.1
    Time taken
    46 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    2.3.1
    Time taken
    143 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    2.3.1
    Time taken
    229 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    2.3.1
    Time taken
    142 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    2.3.1
    Time taken
    141 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    2.3.1
    Time taken
    47 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    2.3.1
    Time taken
    172 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    2.3.1
    Time taken
    195 s
  • 13 OK

Over time

No change since 5 Aug 2026

As a list (3)
ChangedWorst statusOKNotesWarningsErrors
5 Aug 2026OK13000
1 Aug 2026Note12100
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
31,991+11.9% up on the 30 days before, the better directionIt is the sum of 6 channels: CRAN, r2u, autoCRAN, conda-forge, Bioconda and c2d4u.

CRAN rank

662 of 26,530

CRAN

28,756 downloads in the last 30 days

Rank
662 of 26,530
Change
+8% up on the 30 days before, the better direction

It is in the total. Take it out

r2u

1,124 downloads in the last 30 days

Rank
777 of 30,526
Change
+164% up on the 30 days before, the better direction

It is in the total. Take it out

autoCRAN

177 downloads in the last 30 days

Rank
318 of 29,212
Change
+7.9% up on the 30 days before, the better direction

It is in the total. Take it out

conda-forge

1,861 downloads in the last 30 days

Rank
731 of 3,828
Change
+43.6% up on the 30 days before, the better direction

It is in the total. Take it out

Bioconda

25 downloads in the last 30 days

Rank
4,038 of 4,976
Change
no change on the 30 days before

It is in the total. Take it out

c2d4u, no longer updated

48 downloads in the last 30 days

Rank
486 of 7,575
Change
+11.6% up on the 30 days before, the better direction

It is in the total. Take it out

Over time

Compare downloads

Needs
3
Dependent packages
62
Suggested by
51
Needs (3)
Installing it adds
0 packages, 0 KB of source
Of those, need compilation
0
Optional extras (10)
Dependent packages (50 of 62)
PackageTitleDownloads in 30 days
biomod2Ensemble Platform for Species Distribution Modeling6,631
ecospatSpatial Ecology Miscellaneous Methods4,803
twangToolkit for Weighting and Analysis of Nonequivalent Groups2,858
bstGradient Boosting2,462
twangContinuousToolkit for Weighting and Analysis of Nonequivalent Groups - Continuous Exposures2,056
varProModel-Independent Variable Selection via the Rule-Based Variable Priority951
PSweightPropensity Score Weighting for Causal Inference with Observational Studies and Randomized Trials734
RSDAR to Symbolic Data Analysis623
E2EEnsemble Learning Framework for Diagnostic and Prognostic Modeling589
SDMtuneSpecies Distribution Model Selection586
SSDMStacked Species Distribution Modelling536
enmSdmXSpecies Distribution Modeling and Ecological Niche Modeling507
mmaMultiple Mediation Analysis491
CREInterpretable Discovery and Inference of Heterogeneous Treatment Effects474
regressoRRegression Data Analysis System470
DeltaToolsDELTA Analytic Tools and Learning Curve Analysis443
spmSpatial Predictive Modeling443
aihumanExperimental Evaluation of Algorithm-Assisted Human Decision-Making440
bujarBuckley-James Regression for Survival Data with High-Dimensional Covariates440
traineRPredictive (Classification and Regression) Models Homologator435
NumericEnsemblesAutomatically Runs 18 Individual and 14 Ensembles of Models395
tidylearnA Unified Tidy Interface to R's Machine Learning Ecosystem393
crispRdesignRGuide Sequence Design for CRISPR/Cas9388
lilikoiMetabolomics Personalized Pathway Analysis Tool386
ranktreeEnsembleEnsemble Models of Rank-Based Trees with Extracted Decision Rules380
evalITREvaluating Individualized Treatment Rules377
pathsAn Imputation Approach to Estimating Path-Specific Causal Effects371
CoxAIPWDoubly Robust Inference for Cox Marginal Structural Model with Informative Censoring360
OpEnHiMROptimization Based Ensemble Model for Prediction of Histone Modifications in Rice355
visualpredVisualization 2D of Binary Classification Models355
EZtuneTunes AdaBoost, Elastic Net, Support Vector Machines, and Gradient Boosting Machines353
ARTtransferAdaptive and Robust Pipeline for Transfer Learning343
qeMLQuick and Easy Machine Learning Tools336
gbtsHyperparameter Search for Gradient Boosted Trees335
LogisticEnsemblesAutomatically Runs 18 Logistic Models-14 Individual Logistic Models and 4 Ensembles of Models329
precmedPrecision Medicine329
rgnoisefiltElimination of Noisy Samples in Regression Datasets using Noise Filters326
gbm.autoAutomated Boosted Regression Tree Modelling and Mapping Suite322
bonsaiforestShrinkage Based Forest Plots309
funcmlFunctional Machine Learning Framework297
CDSimXSimulating Climate Data for Research and Modelling295
mvGPSCausal Inference using Multivariate Generalized Propensity Score285
spm2Spatial Predictive Modeling279
twangMediationTwang Causal Mediation Modeling via Weighting271
pomodoroPredictive Power of Linear and Tree Modeling259
crossurrCross-Fitting for Doubly Robust Evaluation of High-Dimensional Surrogate Markers255
GB5mcPredGradient Boosting Algorithm for Predicting Methylation States254
MEGBGradient Boosting for Longitudinal Data250
xgroveExplanation Groves241
EpiSembleEnsemble Based Machine Learning Approach for Predicting Methylation States239
Functions
297
Public exports
42
Lines of R code
4,213
Median complexity
3
Functions (297)
Size and composition

Lines by kind (17,689)

KindLinesShare
R code4,21324%
Tests5613%
Documentation1,89311%
Guides8045%
Compiled code10,21858%

Lines by language

LanguageLinesShare
C++7,41842%
R4,77427%
C2,80016%
Rd1,89311%
Vignettes7394%
Other650.4%

Languages are counted from file extensions.

Files
129
R functions
59
Compiled functions
267
Object systems
S3: 4 methods
Complexity
Median
3
Mean
6.63
Highest
66
Median lines per function
19
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
59
Calls
56
Unconnected
9
Groups
5
Growth (36 releases)
Total lines by release
7,682 on 18 Feb 200317,689 on 9 Jul 2026
Release changes

The tests ran and coverage was measured.

Lines run by tests
57.6%
Expressions run by tests
58.1%
Test cases
16
Exports named in tests
16.7%
Coverage by file (19)
Coverage run
Lines counted
1,488
Lines the tests ran
704
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
RUnit, testthat
Test cases
16
Lines of tests
561
Test lines per line of code
0.13
Exports documented
100%
Arguments documented
80%
Return value documented
89.5%
Help pages with examples
28.6%
Examples run in checks
66.7%
Guides (1)
Other documentation
README
Yes, 162 words
Release notes file
Yes
Help pages
21
Lines of documentation
1,893
Earlier names (1)
  • others

gbm-developers / gbm on github.com

Stars
54
Forks
29
Open issues
4
Last commit
9 Jul 2026
Activity
Commits
263
Open pull requests
0
Tagged releases
0
Latest tagged release
–
In development
The default branch showed an older version (2.3.0) than CRAN on 2026-10-25
Issues closed in
392 days (median)
Pull requests closed in
0 days (median)
Pull requests merged
86%
Created
27 Mar 2017
Licence file reads as
–
Development practices (10)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux
Docs sourceREADME.Rmd, pkgdown
GitHub Pages site last deployed 2026-07-09
The repository has a site deploy workflow
CRAN release processcran-comments.md, revdep/
Lint, format, editorRStudio project
Git structural.gitattributes

Method, repository practices

Across gbm-developers

R releases
  • On CRAN
  • Release
VersionReleasedREvents
2.3.1 current9 Jul 20264.6.1
2.3.08 Jul 20264.6.1
2.2.322 Jan 20264.5.2
2.2.228 Jun 20244.4.1
2.1.910 Jan 20244.3.2Maintainer: Greg Ridgeway
2.1.8.111 Aug 20224.2.1
2.1.815 Jul 20204.0.0
2.1.514 Jan 20193.5.2
Earlier versions (28)
VersionReleasedREvents
2.1.416 Sep 20183.5.0Maintainer: Brandon Greenwell
2.1.321 Mar 20173.3.3Orphaned (no maintainer) 21 Mar 2017
2.1.221 Mar 20173.3.3
2.1.111 Mar 20153.1.3
2.110 May 20133.0.0Licence: GPL (>= 2) | file LICENSE
2.0-818 Jan 20132.15.2Maintainer: Harry Southworth
1.6-3.29 Dec 20122.15.2
2.0-58 Dec 20122.15.2
1.6-3.17 May 20102.11.0
1.6-34 Aug 20072.5.1
1.6-223 Jun 20072.5.0
1.6-114 Jun 20072.5.0
1.5-718 Apr 20062.2.1
1.5-521 Jan 20062.2.1
1.5-37 Oct 20052.2.0
1.5-12 Jun 20052.1.0
1.59 May 20052.1.0
1.4-231 Mar 20052.0.1
1.3-59 Nov 20042.0.0
1.3-34 Nov 20042.0.0
1.225 Jun 20041.9.1
1.1-210 Apr 20041.8.1
1.1-17 Dec 20031.8.1
1.015 Jul 20031.7.1
0.7-214 Mar 20031.6.2
0.7-111 Mar 20031.6.2
0.710 Mar 20031.6.2
0.621 Feb 20031.6.2
Release notes (2.3.1)

Bug fixes

  • Fixed an uninitialized-memory read (flagged by CRAN's valgrind memory checks) in CNode's cN field (number of training observations in a node). A tree's root node never had cN set explicitly; this was harmless whenever the tree split at least once (the root is discarded as soon as it splits), but on the rare tree that fails to find any improving split, the root remains the sole terminal node and several distributions' FitBestConstant()/Adjust() read its cN before anything had written to it. Fixed in three places: the root node's cN is now set explicitly when created (src/tree.cpp); CNode's constructor now initializes cN (fixes first use of any node); and the node factory's recycling pool now resets cN on every reuse (src/node_factory.cpp), preventing a stale count from a node's previous use from silently persisting into its next one.