Intro to Python for Computer Science and Data Science: Learning to Program with AI, Big Data and The Cloud
by Paul J. Deitel, Harvey M. Deitel
Exercises
15.1 (Using
PCAto Help Visualize the Digits Dataset) In this chapter, we visualized the Digits dataset’s clusters. To do so, we first used scikit-learn’sTSNEestimator to reduce the dataset’s 64 features down to two, then plotted the results using Seaborn. Reimplement that example to perform dimensionality reduction using scikit-learn’sPCAestimator, then graph the results. How do the clusters compare to the diagram you created in the clustering case study?15.2 (Using
TSNEto Help Visualize the Iris Dataset) In this chapter, we visualized the Iris dataset’s clusters. To do so, we first used scikit-learn’sPCAestimator to reduce the dataset’s four features down to two, then plotted the results using Seaborn. Reimplement that example ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access