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: Shap

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!
  • Using ControlNet models to remodel my living room 09/03/2023
  • Few Shot Learning with SetFit 24/02/2023
  • Stable Diffusion model for generating images of Fjords 05/01/2023
  • Stable Diffusion application with Streamlit 23/12/2022
  • Building a TidyModels classification model from scratch and deploying with Vetiver 02/11/2022
Recent Comments
  • Using ControlNet models to remodel my living room – Hutsons-hacks on Stable Diffusion application with Streamlit
  • danielgbaena on Hyperparameter tuning a Transformer with Optuna
  • goodyguts on Narly NamedTuples in Python
  • NHSDataDictionaRy Package Has Arrived On CRAN - AI Summary on NHSDataDictionaRy package has arrived on CRAN
  • Python Virtual Environments and package dependencies with a requirements.txt – Hutsons-hacks on Creating Virtual Environments for Python Projects in VS Code
Archives
Cool categories
RSS
  • Using GKE workload rightsizing to find — and fix — resource utilization
    Source: Google Cloud Blog Published on 20-Mar-2023
  • Mr. Cooper is improving the home-buyer experience with AI and ML
    Source: Google Cloud Blog Published on 20-Mar-2023
  • NEAR: Growing Web3 adoption through usability
    Source: Google Cloud Blog Published on 20-Mar-2023
  • Pub/Sub schema evolution is now GA
    Source: Google Cloud Blog Published on 20-Mar-2023
  • Executing Python Scripts With a Shebang
    Source: RealPython Published on 20-Mar-2023 By Real Python
Advertising blurb
Copyright © 2023 Hutsons-Hacks. All Rights Reserved.
Boston Theme by FameThemes