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

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.

主站蜘蛛池模板: 象山县| 灯塔市| 体育| 兴安盟| 罗江县| 绥棱县| 台江县| 莱阳市| 安平县| 栾川县| 玉树县| 巴青县| 时尚| 德清县| 越西县| 长寿区| 云安县| 越西县| 龙州县| 资兴市| 洪江市| 石门县| 黑水县| 甘孜县| 湖北省| 渑池县| 攀枝花市| 合水县| 雅江县| 丰城市| 新余市| 扎兰屯市| 昭觉县| 顺平县| 灵川县| 石家庄市| 阆中市| 塘沽区| 江孜县| 驻马店市| 昌吉市|