You will need Python 3.6x 64-bit from https://www.python.org/:
from sklearn.cluster import KMeans
import pandas as pd
from matplotlib import pyplot as plt
from random import randint
import numpy as np
You will need programs from GitHub Chapter07:
- k-means_clustering_minibatch.py
- k-means_clustering_minibatch_shuffling.py
Check out the following video to see the code in action: