Machine Learning, Data Science, Unsupervised Learning, Artificial Intelligence, Towards Data Science.
one-hot encode: convert each categorical variable into a vector of n-elements: one for each possible category, all set to 0 except the one for the given category. What the algorithm will do is initiate k random ‘centroids’ -points in the space defined by the dimensions of the dataset’s elements-,