Skip to content

Implement Gradient Boosting Regressor with Decision Trees in R#199

Merged
siriak merged 1 commit intoTheAlgorithms:masterfrom
iampratik13:feature/gradient-boosting-r
Oct 12, 2025
Merged

Implement Gradient Boosting Regressor with Decision Trees in R#199
siriak merged 1 commit intoTheAlgorithms:masterfrom
iampratik13:feature/gradient-boosting-r

Conversation

@iampratik13
Copy link
Copy Markdown
Contributor

This PR introduces a fully functional Gradient Boosting Regressor implementation in R, designed for educational and practical purposes. Gradient Boosting is a sequential ensemble learning method where each model iteratively corrects the errors of previous models, making it a powerful technique for regression problems.

Algorithm Complexity:
• Time complexity: O(n_trees × n_samples × log(n_samples))
• Space complexity: O(n_trees × tree_size)

@siriak siriak requested a review from Copilot October 12, 2025 09:43
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a complete Gradient Boosting Regressor algorithm in R using object-oriented programming with R6 classes. The implementation includes decision trees as weak learners and demonstrates the sequential ensemble learning approach where each model corrects errors from previous models.

  • Implements three R6 classes: DecisionTreeNode, RegressionTree, and GradientBoostingRegressor
  • Provides comprehensive demonstration with synthetic datasets and hyperparameter comparison
  • Includes validation, prediction methods, and feature importance calculation

Comment thread machine_learning/gradient_boosting.r
Comment thread machine_learning/gradient_boosting.r
@siriak siriak merged commit 79ca778 into TheAlgorithms:master Oct 12, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants