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…

Category: Python Blogs

Blogs relating to Python

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

PyHacks tutorials – the resource for learning Python is growing

PythonGary Hutson16/07/20210

I had an aim at the start of this year to make learning Python accessible to everyone, for free. Unfortunately, I had some health problems to contend with alongside work, so I did not have the extracurricular time to tend to my pet project. However, I have been busy over the last few evenings and…

Continue Reading
PythonGary Hutson01/07/20210

Python (PyHacks) tutorials on lists, list comprehensions and Tuples has arrived

I have had many colleagues who work with the R programming language wanting something that is easily accessible for learning Python.…
PythonGary Hutson21/04/20210

Feature encoding methods – the Pandas way

This tutorial explores the various ways data can be encoded, using Pandas and Numpy, to prepare the data ready for a…
PythonGary Hutson13/04/20211

Creating Virtual Environments for Python Projects in VS Code

I had a similar problem recently, and then a request came through from a close friend (Chris Mainey) for the same…
PythonGary Hutson23/01/20210

Reticulate webinar – R and Python – a happy union

Wednesday (20th January 2021) myself and a colleagues Andreas kicked off the first webinar of 2021 for the NHS-R Community with…
PythonGary Hutson25/11/20200

LondonR Talks – Computer Vision Classification – Turning a Kaggle example into a clinical decision making tool

I had the pleasure of speaking at the last LondonR event of 2020. What a strange year it has been? But…
PythonGary Hutson05/10/20200

Python Pandas Pro – Session Three – Setting and Operations

The third in the series of Python Pandas tutorials. In this session we look at setting values, performing operations on data…
PythonGary Hutson05/10/20200

Python Pandas Pro – Session Two – Selection on Data Frames

In the previous post we worked with a custom data set we had created for the purposes of demonstration. This time…
PythonGary Hutson28/09/20201

Python Pandas Pro – Session One – Creation of Pandas objects and basic data frame operations

I first started using Python a couple of years ago, when the limitations of some of the Deep Learning libraries in…

Posts navigation

Newer posts
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