Unsupervised learning using K-means clustering.
For a given input X, assign data points to K amount of clusters/classes. Afterwards, use the n-dimensional Euclidian distance for prediction.
In addition, a function for Principal component analysis (PCA) can also be used for analyzing the data.