
LightGBM is a gradient boosting library built for speed. Where XGBoost grows every level of a tree, LightGBM grows leaf-wise: it always splits the leaf that gains the most, and it finds cuts from histograms of binned columns instead of sorting. This skill follows the same running example as the XGBoost skill, a panel of 56 US stocks with a few features known at each month-end, so every result can be compared. You grow trees both ways and see where the leaves go, build the histograms and the subtraction trick that make training fast, cut a column of labels without turning it into dozens of columns, handle a target where the event you care about is rare, tune a model without fooling yourself with the validation set, rank stocks with lambdarank and group queries, and read a model with split counts, gain and SHAP values. The skill ends with XGBoost and LightGBM on one panel, judged the way a research team would judge them.
Best after the XGBoost skill, which uses the same panel. Comfort with Python and pandas and a first look at boosted trees is enough.