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

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.

主站蜘蛛池模板: 云阳县| 苍溪县| 错那县| 沿河| 南郑县| 区。| 资阳市| 恩平市| 临邑县| 汕头市| 赣州市| 伊春市| 沙河市| 江北区| 宁乡县| 棋牌| 阳朔县| 新巴尔虎左旗| 巴彦淖尔市| 宝鸡市| 龙口市| 江孜县| 清徐县| 宣恩县| 阿拉善左旗| 勐海县| 安西县| 吴江市| 广安市| 历史| 大安市| 长垣县| 宁南县| 岚皋县| 元江| 普兰县| 纳雍县| 开江县| 盐山县| 佛坪县| 德兴市|