Generalized Boosted Regression Models
Overview
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.
Bug fixes
- Fixed an uninitialized-memory read (flagged by CRAN's valgrind memory checks) in
CNode'scNfield (number of training observations in a node). A tree's root node never hadcNset 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 itscNbefore anything had written to it. Fixed in three places: the root node'scNis now set explicitly when created (src/tree.cpp);CNode's constructor now initializescN(fixes first use of any node); and the node factory's recycling pool now resetscNon every reuse (src/node_factory.cpp), preventing a stale count from a node's previous use from silently persisting into its next one.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 21includes a package overview page
- Examples that run
- 67%4 run in a plain check · 2 hold no code
- Exported functions with examples
- 32%
- Documented parameters
- 80%
- Return-value docs
- 89%
- Help pages citing references
- 52%
Also includes 8 demo scripts (run with demo())
Downloads
Repository
- PRs merged (all time)
- 86%
- Median days to close, 50 most recently updated closed issues
- 392
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
10 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/gbm-developers/gbm on 2026-10-22.
The R CMD check workflow runs on Linux
GitHub Pages site last deployed 2026-07-09 · The repository has a site deploy workflow
Show all practicesHide 1 practice
Dependencies
Installing gbm adds no packages beyond those that come with R.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 13 more dependents and 51 packages that suggest it on CRAN ↗
Code & Tests
People & History
Previously maintained by Brandon Greenwell (2.0-8 to 2.1.8.1) and Greg Ridgeway (0.6 to 2.0-5).
Pick two releases to compare their code metrics.
- 2.3.1Latest
- 2.3.02026-07-08 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 2.2.32026-01-22 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 2.2.22024-06-28 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 2.1.92024-01-10 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 2.1.8.12022-08-11 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 2.1.8
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 2.1.52019-01-14 · diff ↗
Show 56 earlier eventsHide 56 earlier events
- 2.1.42018-09-16 · diff ↗ ·
removed 1 export
pattern:^[^\\.]added 45 exports
basehaz.gbm, calibrate.plot, checkID, checkMissing, checkOffset, checkWeights, gbm, gbm.conc, gbm.fit, gbm.loss, gbm.more, gbm.perf, gbm.roc.area, gbmCluster, gbmCrossVal, gbmCrossValErr, gbmCrossValModelBuild, gbmCrossValPredictions, gbmDoFold, getCVgroup, getStratify, getVarNames, grid.arrange, guessDist, interact.gbm, ir.measure.auc, ir.measure.conc, ir.measure.map, ir.measure.mrr, ir.measure.ndcg and 15 more - unarchivedReturned to CRAN2018-09-15
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- orphanedOrphaned by its maintainer2017-03-21long-standing errors were not corrected. NMU by CRAN team
- 2.1.32017-03-21 · diff ↗
- 2.1.22017-03-21 · diff ↗
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- 2.1.12015-03-11 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 2.12013-05-10 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 2.0-82013-01-18 · diff ↗
- 2.0-5
- 1.6-3.2
- RR 2.15.0 released · 2012-03-30
- RR 2.14.0 released · 2011-10-31
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- 1.6-3.12010-05-07 · diff ↗
- RR 2.11.0 released · 2010-04-22
- RR 2.10.0 released · 2009-10-26
- RR 2.9.0 released · 2009-04-17
- RR 2.8.0 released · 2008-10-20
- RR 2.7.0 released · 2008-04-22
- RR 2.6.0 released · 2007-10-03
- 1.6-32007-08-04 · diff ↗
- 1.6-22007-06-23 · diff ↗
- 1.6-12007-06-14 · diff ↗
- RR 2.5.0 released · 2007-04-24
- RR 2.4.0 released · 2006-10-03
- RR 2.3.0 released · 2006-04-24
- 1.5-72006-04-18 · diff ↗
- 1.5-52006-01-21 · diff ↗
- 1.5-32005-10-07 · diff ↗
- RR 2.2.0 released · 2005-10-06
- 1.5-12005-06-02 · diff ↗
- 1.52005-05-09 · diff ↗
- RR 2.1.0 released · 2005-04-18
- 1.4-22005-03-31 · diff ↗
- 1.3-52004-11-09 · diff ↗
- 1.3-32004-11-04 · diff ↗
- RR 2.0.0 released · 2004-10-04
- 1.22004-06-25 · diff ↗
- RR 1.9.0 released · 2004-04-12
- 1.1-22004-04-10 · diff ↗
- 1.1-12003-12-07 · diff ↗
- RR 1.8.0 released · 2003-10-08
- 1.02003-07-15 · diff ↗
- RR 1.7.0 released · 2003-04-16
- 0.7-22003-03-14 · diff ↗
- 0.7-12003-03-11 · diff ↗
- 0.72003-03-10 · diff ↗
- 0.62003-02-21
- RR 1.6.0 released · 2002-10-01
Package metadata
- First published
- 2003-02-21
- Total releases
- 36 / 23 yrs
- License
- GPL (>= 2) | file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 577 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("gbm")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.