How is gradient boosting used?

Gradient boosting is an ensemble machine learning algorithm used to improve model accuracy by building a sequence of weak decision trees (weak learners) one after another, with each new tree focusing on correcting the prediction errors made by the previous trees. This is done by gradually minimizing the loss function with an optimization procedure based on gradient descent.
Gradient boosting is used in:
• Classification: such as predicting the probability that a patient has a certain disease.
• Regression: such as predicting property prices.
• Competitions and practical applications: where it is considered one of the most accurate models when well tuned (hyperparameter tuning).