Home
Galen's Blog
Cancel

Which Scikit-Learn Models Have Built-In Uncertainty Quantification?

Uncertainty quantification is a valuable thing to have when modelling noisy data. We need to make decisions and it can make a huge difference having estimates of the worst probable outcome for our ...

Notes On Laszlo Sragner's PyData Talk On Code Smells

Introduction This post is my notes from the video Laszlo Sragner - Code Smells in Data Science: What can we do about them? | PyData London 2023. I don’t necessary agree with all the points made, bu...

Pareto World

This is a song I asked ChatGPT to write about Pareto fronts sung to the lyrics of Gary Jules’ “Mad World”. Here is the original song just to put the tune in your head. Here are the lyrics produc...

A Ciw Implementation of SimPy's Machine Shop Example

The following is an implementation of the machine shop example from the Simpy documention using Ciw. Parts of this implementation came from this post. import ciw import pandas as pd class CiwMach...

On Thoughts and Feelings Along With Their Meanings

Background Some years ago a person I care about wrote me a poem about thougts and feelings, and of their meanings. I’ve put down some words in response below. On Thoughts and Feelings Along With T...

A Sankey Random Walk with Matplotlib

While looking into programmatically generating Sankey diagrams based on the results of discrete event simulations I made up a somewhat absurd programming exercise. Using matplotlib.sankey.Sankey yo...

Plotting Ciw's Café Example As A Sankey Diagram Using Plotly

In this post we’ll run the café example from the Ciw documentation, collect the results, and display them as a Sankey diagram. First, we can run the example: import ciw import pandas as pd ciw.s...

A Generalization of Subindependence

Background I was contemplating the notion of subindependence. It states that for two random varaibles on a shared probability space that the characteristic function of their sum is equal to their ...

Reaching for the Last Pandigital Factorial Number

This post is for a dear friend. Many years ago I shared with him a mathematical puzzle that we both enjoyed. Later I posted What’s the next base-ten non-pandigital factorial number after 41!? on Ma...

A Ciw Implementation of SimPy's Bank Renege Example

In this post we look at implementing SimPy’s Bank Renege example using Ciw. At a first glance this example is essentially a M/M/1 queue, but it has a couple of custom features. The first customized...