0
0
ML Pythonml~5 mins

LightGBM in ML Python - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is LightGBM?
LightGBM is a fast, efficient, and scalable gradient boosting framework that uses tree-based learning algorithms. It is designed to handle large datasets with high speed and low memory usage.
Click to reveal answer
intermediate
How does LightGBM grow trees differently from traditional gradient boosting methods?
LightGBM grows trees leaf-wise (best-first) instead of level-wise. This means it splits the leaf with the largest loss reduction first, which can lead to faster convergence and better accuracy.
Click to reveal answer
beginner
What are the main advantages of using LightGBM?
LightGBM is faster and uses less memory than many other gradient boosting frameworks. It supports parallel and GPU learning, handles large datasets well, and often achieves higher accuracy due to leaf-wise tree growth.
Click to reveal answer
beginner
What is the purpose of the 'max_depth' parameter in LightGBM?
The 'max_depth' parameter limits the maximum depth of each tree. It helps prevent overfitting by controlling how complex each tree can become.
Click to reveal answer
intermediate
How does LightGBM handle categorical features?
LightGBM can directly handle categorical features by finding the best split based on category grouping without needing to one-hot encode them, which saves memory and speeds up training.
Click to reveal answer
What type of algorithm is LightGBM?
ASupport vector machine
BNeural network
CGradient boosting decision tree
DK-means clustering
How does LightGBM grow trees?
ALeaf-wise
BRandomly
CLevel-wise
DDepth-wise
Which of these is NOT an advantage of LightGBM?
ARequires one-hot encoding for categorical features
BHandles large datasets efficiently
CSupports GPU training
DUses less memory than many other frameworks
What does the 'max_depth' parameter control in LightGBM?
ANumber of trees
BNumber of features
CLearning rate
DMaximum depth of each tree
Which metric is commonly used to evaluate LightGBM classification models?
AMean squared error
BAccuracy
CSilhouette score
DSum of squared errors
Explain how LightGBM differs from traditional gradient boosting methods in tree growth and why this matters.
Think about how LightGBM chooses which part of the tree to split next.
You got /4 concepts.
    Describe the benefits of using LightGBM for large datasets and categorical features.
    Consider what makes LightGBM efficient and easy to use with different data types.
    You got /4 concepts.