Loading topic
fit and fit_predict style. The previous chapter defined clustering as grouping unlabeled points so that members of a group are closer to each5 min readfit style of API. You should also know that clustering is unsupervised, so there are no labels to learn from. Linkage criteria, dendrograms, and cutting the tree each get their own chapter. Here the focus is the me5 min readlinkage and scikit-learn's AgglomerativeClustering. Hierarchical clustering produces a tree, but most applications need one label per point. Cutting the tree turns the hierarchy into that flat clu4 min readfit and fit_predict style. It also assumes you have met linkage criteria and dendrograms in5 min readlinkage and AgglomerativeClustering, and that you know what the linkage criteria (single, complete, average, Ward) do. You also need basic NumPy. The goal is to learn where hierarchical clustering stops being practical and how to recognize its characteristic fail5 min readfit style API. It also assumes you have seen hierarchical clustering, where clusters come from merging the closest groups. Here the question changes. Instead of asking which groups are4 min readeps and min_samples. Together they define what "dense" means for your data, so the output depends heavily on them. This chapter explains what each parameter controls, how to pick starting values, and how to check the result.5 min readeps and min_samples mean, and that you have used scikit-learn's fit and fit_predict methods. Here you will run DBSCAN, read its outputs, and avoid the usual mistakes.4 min readDBSCAN in scikit-learn. It also assumes you know the core, border and noise definitions, and that you have used the k-distance plot to pick eps. Here we look at the data and settings where those tools stop working, and at how to recognize each failure.4 min readAgglomerativeClustering, scipy's linkage and fcluster, and DBSCAN, as covered earlier. It also assumes you know what a dendrogram is and what eps and min_samples control.5 min readAgglomerativeClustering and DBSCAN in scikit-learn. It also assumes you know what linkage, eps, and min_samples mean, and that you have scaled features before. The goal is a repeatable way to pick between the two methods, and to know when neither fits.5 min readeps and min_samples do. You should also be comfortable with scikit-learn's fit and labels_ style and with scaling features before clustering.5 min read