Testing unsupervised clustering Assume we train a KMeans model using data X. This will give a set of centroids that can be used to cluster data X* using a Nearest Centroid Classifier.

If we use a density-based model such as DBSCAN to train a model using data X, how can we use it to classify future data X*? Is KNN suitable?

Thanks!
General speaking, you can assign the cluster to the new value using the method of that clustering method. For example, if you are using the DBSACAN algorithm, you can assign the cluster to the new value, if it is reachable from one core points of a cluster (in a tie situation, we can assign the more density cluster or many other methods).