Installation
Imports
Load in sample imagery
Run the code below to download a zip file of 3 sample dog and 3 sample cat images and unzip them into a newly created 'image' directory. We'll use unpack_archive
method from shutil
to unzip the images and load the filenames into a variable called filenames
.
Get vectors
Inspecting vectors
KMeans Clustering
We can do a kmeans clustering fit to our newly generated vectors to see if we can easily seperate the two classes using only the information retained in each vector.