- Building Machine Learning Systems with Python
- Luis Pedro Coelho Willi Richert Matthieu Brucher
- 199字
- 2021-07-23 17:11:20
Visualization is a good first step
Datasets later in the book will grow to thousands of features. With only four features in our starting example, we can easily plot all two-dimensional projections on a single page and build predictions, which can then be extended to large datasets with many more features. As we saw in Chapter 3, Regression, visualizations are excellent in the initial exploratory phase of the analysis as they allow you to learn the general features of your problem as well as catch problems that occurred with data collection early.
Each subplot in the following plot shows all points projected into two of the dimensions. The outlying group (triangles) are the Iris Setosa plants, while Iris Versicolor plants are in the center (circle) and Iris Virginica are plotted with x marks. We can see that there are two large groups. One is of Iris Setosa and another is a mixture of Iris Versicolor and Iris Virginica:

Here is the code to load the dataset (you can find the plotting code in the online repository):
from sklearn.datasets import load_iris data = load_iris() features = data.data feature_names = data.feature_names target = data.target target_names = data.target_names labels = target_names[target]
- 新型電腦主板關鍵電路維修圖冊
- Learning AngularJS Animations
- scikit-learn:Machine Learning Simplified
- 嵌入式系統中的模擬電路設計
- SiFive 經典RISC-V FE310微控制器原理與實踐
- 計算機組裝維修與外設配置(高等職業院校教改示范教材·計算機系列)
- Hands-On Artificial Intelligence for Banking
- 無蘋果不生活:OS X Mountain Lion 隨身寶典
- 筆記本電腦芯片級維修從入門到精通(圖解版)
- Arduino項目開發:智能生活
- 可編程邏輯器件項目開發設計
- 分布式存儲系統:核心技術、系統實現與Go項目實戰
- 多媒體應用技術(第2版)
- Hands-On Markov Models with Python
- CPU設計實戰:LoongArch版