Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Plots feature importances using XGBoost and matplotlib.
import xgboost as xgb
import matplotlib.pyplot as plt
from sklearn.datasets import load_iris
data = load_iris()
model = xgb.XGBClassifier(eval_metric='mlogloss')
model.fit(data.data,data.target)
xgb.plot_importance(model)
plt.show()XGBoost (Extreme Gradient Boosting) is an optimized, scalable, and high-performance gradient boosting framework based on decision trees, widely used for supervised learning tasks including classification, regression, and ranking.
Origin & Creator
XGBoost was developed by Tianqi Chen and collaborators in 2014 to provide an efficient and scalable gradient boosting library, optimized for performance and accuracy.
Industrial Note
XGBoost is heavily used in Kaggle competitions, finance, healthcare analytics, adtech, recommendation systems, and any scenario needing fast and accurate tree-based predictions.