官术网_书友最值得收藏!

Data visualization with machine learning

Let's get started with data visualization. We will plot histograms for each variable. The steps in the preceding section are important, because we need to understand these datasets if we want to accurately and effectively use machine learning. Otherwise, we're shooting in the dark, and we might spend time on a method that doesn't need to be investigated. We will use the plt method and make a plot, in which we will add the histograms of our dataset and edit the figure sizes, to make them easier to see.

We can see the output in the following screenshot:

As you can see, most of the preceding histograms have the majority of their data at around 1, with some data at a slightly higher value. Each histogram, apart from class, has at least one case where the value is 10. The histogram for clump thickness is pretty evenly distributed, while the histogram for chromatin is skewed to the left.

主站蜘蛛池模板: 手游| 砚山县| 普兰店市| 云林县| 东丽区| 浦城县| 天长市| 阳城县| 合水县| 礼泉县| 浠水县| 高阳县| 禹城市| 曲周县| 大邑县| 丰县| 喜德县| 东至县| 永德县| 偃师市| 唐海县| 巫山县| 大厂| 济阳县| 温宿县| 三河市| 苏尼特右旗| 荔波县| 方正县| 临武县| 嵩明县| 上思县| 绥阳县| 甘孜县| 同江市| 山西省| 灌南县| 宜兰市| 五台县| 鄂尔多斯市| 东港市|