Skip to content

Conversation

@iampratik13
Copy link
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

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

@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.

2 participants