Skip to content
  • Home
  • About Me
    • Cookie Policy (EU)
  • R Blogs
  • Python Blogs
  • My GitHub
  • NHS-R Community
Hutsons-hacks

Hutsons-hacks

HACKS, TIPS AND TRICKS IN R, Python and beyond…

Tag: Model Explainability

Training XGBoost Model and Assessing Feature Importance using Shapley Values in Sci-kit Learn

PythonGary Hutson07/09/20210

In this tutorial I will take you through how to: Read in data Perform feature engineering, dummy encoding and feature selection Splitting data Training an XGBoost classifier Pickling your model and data to be consumed in an evaluation script Evaluating your model with Confusion Matrices and Classification reports in Sci-kit Learn Working with the shap…

Continue Reading
Follow and Subscribe
Follow @StatsGary
Most recent musings!
  • Creating doodles with HED detection and ControlNet 01/10/2023
  • Building a PyTorch binary classification multi-layer perceptron from the ground up 10/07/2023
  • Graph Data Modeling with Python 30/06/2023
  • Fine tune a Dreambooth model for image generation using Stable Diffusion with PyTorch 25/05/2023
  • Using ControlNet models to remodel my living room 09/03/2023
Recent Comments
  • Creating doodles with HED detection and ControlNet – Hutsons-hacks on Stable Diffusion application with Streamlit
  • Creating doodles with HED detection and ControlNet – Hutsons-hacks on Using ControlNet models to remodel my living room
  • Using ControlNet models to remodel my living room – Hutsons-hacks on Stable Diffusion application with Streamlit
  • danielgbaena on Hyperparameter tuning a Transformer with Optuna
  • Diverging Bar Charts – Plotting Variance with ggplot2 – NHS-R Community on Diverging Bar Charts – Plotting Variance with ggplot2
Archives
Cool categories
RSS
  • A Gentle Introduction to Multi-Head Latent Attention (MLA)
    Source: Machine Learning Mastery Published on 23-Jun-2025 By Adrian Tam
  • Looker developers gain speed and accuracy with debut of Continuous Integration
    Source: Google Cloud Blog Published on 23-Jun-2025
  • Python enumerate(): Simplify Loops That Need Counters
    Source: RealPython Published on 23-Jun-2025 By Real Python
  • SmolVLM to SmolVLM2: Compact Models for Multi-Image VQA
    Source: PyImageSearch Published on 23-Jun-2025 By Piyush Thakur
  • How Conversational Agents and Looker can boost contact center efficiency and enhance constituent services
    Source: Google Cloud Blog Published on 23-Jun-2025
Advertising blurb
Copyright © 2025 Hutsons-Hacks. All Rights Reserved.
Boston Theme by FameThemes
Manage Cookie Consent
We use cookies to optimise our website and our service.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
View preferences
{title} {title} {title}