In fact, it has only a few colors, not all 27 as mentioned on the blog post.
We turned to a K-Nearest-Neighbors algorithm to give color names to RGB values, thanks to the XKCD Color Survey. The XKCD survey consists of 200,000 RGB values labeled with 27 different color names (e.g. black, green, teal, etc.) that we use to train a scikit-learn KNeighborsClassifier.
The xkcd dataset (
color_names.npz
) used for KNN to predict color name from RGB values doesn't has white color.In fact, it has only a few colors, not all 27 as mentioned on the blog post.
How do I add white to dataset as I need it.