In this example preform spline regression on each variable (these are the weak learners) and combine the results using gradient boosting.