January 2018
Beginner to intermediate
316 pages
7h 14m
English
This is a bit trickier. Because unsupervised learning is not concerned with predictions, we cannot directly evaluate performance based on how well the model can predict a value. That being said, if we are performing a cluster analysis, such as in the previous marketing segmentation example, then we will usually utilize the silhouette coefficient (a measure of separation and cohesion of clusters between -1 and 1) and some human-driven analysis to decide if a feature engineering procedure has improved model performance or if we are merely wasting our time.
Here is an example of using Python and scikit-learn to import and calculate the silhouette coefficient for some fake data:
attributes = tabular_data ...Read now
Unlock full access